org.eclipse.emf.codegen.ecore.genmodel.impl
Class GenDataTypeImpl

java.lang.Object
  |
  +--org.eclipse.emf.common.notify.impl.NotifierImpl
        |
        +--org.eclipse.emf.ecore.impl.EObjectImpl
              |
              +--org.eclipse.emf.codegen.ecore.genmodel.impl.GenBaseImpl
                    |
                    +--org.eclipse.emf.codegen.ecore.genmodel.impl.GenClassifierImpl
                          |
                          +--org.eclipse.emf.codegen.ecore.genmodel.impl.GenDataTypeImpl
All Implemented Interfaces:
EObject, GenBase, GenClassifier, GenDataType, InternalEObject, Notifier
Direct Known Subclasses:
GenEnumImpl

public class GenDataTypeImpl
extends GenClassifierImpl
implements GenDataType

An implementation of the model object 'Gen Data Type'.

The following features are implemented:


Inner classes inherited from class org.eclipse.emf.codegen.ecore.genmodel.impl.GenBaseImpl
GenBaseImpl.ColorInformation, GenBaseImpl.GenClassFilter, GenBaseImpl.GenFeatureFilter, GenBaseImpl.GenOperationFilter, GenBaseImpl.GIFEmitter, GenBaseImpl.ImportManager, GenBaseImpl.UniqueNameHelper
 
Inner classes inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
EObjectImpl.EPropertiesHolder, EObjectImpl.EPropertiesHolderImpl
 
Field Summary
protected  EDataType ecoreDataType
          The cached value of the 'Ecore Data Type' reference.
 
Fields inherited from class org.eclipse.emf.codegen.ecore.genmodel.impl.GenBaseImpl
ecoreGenPackage, javaLangTypes, javaReservedWords, theEcorePackage
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eContainer, eContainerFeatureID, ELAST_EOBJECT_FLAG, eProperties
 
Fields inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl
eAdapters, EDELIVER, eFlags, ELAST_NOTIFIER_FLAG
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected GenDataTypeImpl()
           
 
Method Summary
 EDataType basicGetEcoreDataType()
          
 java.lang.Object eGet(EStructuralFeature eFeature, boolean resolve)
          
 boolean eIsSet(EStructuralFeature eFeature)
          
 void eSet(EStructuralFeature eFeature, java.lang.Object newValue)
          
protected  EClass eStaticClass()
          
 void eUnset(EStructuralFeature eFeature)
          
 EClassifier getEcoreClassifier()
           
 EDataType getEcoreDataType()
          
 java.lang.String getImportedInstanceClassName()
           
 java.lang.String getImportedMetaType()
           
 java.lang.String getModelInfo()
           
 java.lang.String getObjectInstanceClassName()
           
 java.lang.String getQualifiedInstanceClassName()
           
 java.lang.String getSerializableFlag()
           
 void initialize(EDataType eDataType)
           
 boolean isArrayType()
           
 boolean isPrimitiveType()
           
 boolean isSerializable()
           
 boolean reconcile()
           
 boolean reconcile(GenDataType oldGenDataTypeVersion)
           
protected  void reconcileSettings(GenDataType oldGenDataTypeVersion)
           
 void setEcoreDataType(EDataType newEcoreDataType)
          
 
Methods inherited from class org.eclipse.emf.codegen.ecore.genmodel.impl.GenClassifierImpl
getClassifierAccessorName, getClassifierID, getClassifierInstanceName, getFormattedName, getGenPackage, getMetaType, getName
 
Methods inherited from class org.eclipse.emf.codegen.ecore.genmodel.impl.GenBaseImpl
appendModelSetting, appendModelSetting, canGenerate, canGenerateEdit, canGenerateEditor, capName, collectGenClasses, collectGenFeatures, collectGenOperations, eObjectForURIFragmentSegment, ePackageGenModel, eURIFragmentSegment, filterGenClasses, findGenClass, findGenClassifier, findGenDataType, findGenEnum, findGenFeature, findGenPackage, findGenPackageHelper, findOrCreateContainer, format, generate, generate, generate, generate, generate, generateEdit, generateEditor, getAllGenPackages, getGenModel, getImplClassName, getImportedType, getImportManager, getInstanceClass, getJavaLangTypes, getJavaReservedWords, getPrimitiveDefault, getPrimitiveObjectType, getType, getTypeGenClasses, hasModelContribution, isJavaUtilMapEntry, isPrimitiveType, parseName, safeName, setImportManager, uncapName, uncapPrefixedName, unicodeEscapeEncode
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eClass, eContainer, eContainerFeatureID, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicFeatureID, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eIsProxy, eProperties, eProxyURI, eResource, eSetClass, eSetProxyURI, eSetResource, eSetting, eSettingDelegate, eSettings, eStaticFeatureCount, toString
 
Methods inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl
eAdapters, eDeliver, eNotificationRequired, eNotify, eSetDeliver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.codegen.ecore.genmodel.GenClassifier
getClassifierAccessorName, getClassifierID, getClassifierInstanceName, getFormattedName, getGenPackage, getMetaType, getName
 
Methods inherited from interface org.eclipse.emf.codegen.ecore.genmodel.GenBase
canGenerate, canGenerateEdit, canGenerateEditor, capName, ePackageGenModel, format, generate, generateEdit, generateEditor, getGenModel, safeName, uncapName, uncapPrefixedName
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainmentFeature, eContents, eCrossReferences, eGet, eIsProxy, eResource
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

ecoreDataType

protected EDataType ecoreDataType
The cached value of the 'Ecore Data Type' reference.
See Also:
getEcoreDataType()
Constructor Detail

GenDataTypeImpl

protected GenDataTypeImpl()
Method Detail

eStaticClass

protected EClass eStaticClass()
Overrides:
eStaticClass in class GenClassifierImpl

getEcoreDataType

public EDataType getEcoreDataType()
Specified by:
getEcoreDataType in interface GenDataType
Following copied from interface: org.eclipse.emf.codegen.ecore.genmodel.GenDataType
Returns:
the value of the 'Ecore Data Type' reference.
See Also:
GenDataType.setEcoreDataType(EDataType), GenModelPackage.getGenDataType_EcoreDataType()

basicGetEcoreDataType

public EDataType basicGetEcoreDataType()

setEcoreDataType

public void setEcoreDataType(EDataType newEcoreDataType)
Specified by:
setEcoreDataType in interface GenDataType
Following copied from interface: org.eclipse.emf.codegen.ecore.genmodel.GenDataType
Parameters:
value - the new value of the 'Ecore Data Type' reference.
See Also:
GenDataType.getEcoreDataType()

eGet

public java.lang.Object eGet(EStructuralFeature eFeature,
                             boolean resolve)
Specified by:
eGet in interface EObject
Overrides:
eGet in class GenClassifierImpl
Following copied from interface: org.eclipse.emf.ecore.EObject
Parameters:
feature - the feature of the value to fetch.
resolve - whether to resolve.
Returns:
the value of the given feature of the object.
Throws:
java.lang.IllegalArgumentException - if the feature is not one the meta class's features.
See Also:
InternalEList.basicIterator(), InternalEList.basicList(), EcoreUtil.resolve(EObject, ResourceSet), EObject.eSet(EStructuralFeature, Object), EObject.eUnset(EStructuralFeature), EObject.eIsSet(EStructuralFeature), EObject.eGet(EStructuralFeature)

eSet

public void eSet(EStructuralFeature eFeature,
                 java.lang.Object newValue)
Specified by:
eSet in interface EObject
Overrides:
eSet in class EObjectImpl
Following copied from interface: org.eclipse.emf.ecore.EObject
Parameters:
feature - the feature of the value to set.
Throws:
java.lang.IllegalArgumentException - if the feature is not one the meta class's features, or it isn't changeable.
java.lang.ClassCastException - if there is a type conflict.
ArrayStoreException - if there is a type conflect.
See Also:
EObject.eUnset(EStructuralFeature), EObject.eIsSet(EStructuralFeature), EObject.eGet(EStructuralFeature, boolean)

eUnset

public void eUnset(EStructuralFeature eFeature)
Specified by:
eUnset in interface EObject
Overrides:
eUnset in class EObjectImpl
Following copied from interface: org.eclipse.emf.ecore.EObject
Parameters:
feature - the feature in question.
Throws:
java.lang.IllegalArgumentException - if the feature is not one the meta class's features, or it isn't changeable.
See Also:
EObject.eIsSet(EStructuralFeature), EObject.eSet(EStructuralFeature, Object), EObject.eGet(EStructuralFeature, boolean)

eIsSet

public boolean eIsSet(EStructuralFeature eFeature)
Specified by:
eIsSet in interface EObject
Overrides:
eIsSet in class GenClassifierImpl
Following copied from interface: org.eclipse.emf.ecore.EObject
Parameters:
feature - the feature in question.
Returns:
whether the feature of the object is set.
Throws:
java.lang.IllegalArgumentException - if the feature is not one the meta class's features.
See Also:
EObject.eSet(EStructuralFeature, Object), EObject.eUnset(EStructuralFeature), EObject.eGet(EStructuralFeature, boolean)

getEcoreClassifier

public EClassifier getEcoreClassifier()
Specified by:
getEcoreClassifier in interface GenClassifier
Overrides:
getEcoreClassifier in class GenClassifierImpl

getImportedMetaType

public java.lang.String getImportedMetaType()
Specified by:
getImportedMetaType in interface GenClassifier
Overrides:
getImportedMetaType in class GenClassifierImpl

getQualifiedInstanceClassName

public java.lang.String getQualifiedInstanceClassName()
Specified by:
getQualifiedInstanceClassName in interface GenDataType

getImportedInstanceClassName

public java.lang.String getImportedInstanceClassName()
Specified by:
getImportedInstanceClassName in interface GenDataType

getObjectInstanceClassName

public java.lang.String getObjectInstanceClassName()
Specified by:
getObjectInstanceClassName in interface GenDataType

isSerializable

public boolean isSerializable()
Specified by:
isSerializable in interface GenDataType

getSerializableFlag

public java.lang.String getSerializableFlag()
Specified by:
getSerializableFlag in interface GenDataType

isPrimitiveType

public boolean isPrimitiveType()
Specified by:
isPrimitiveType in interface GenDataType

isArrayType

public boolean isArrayType()
Specified by:
isArrayType in interface GenDataType

getModelInfo

public java.lang.String getModelInfo()
Specified by:
getModelInfo in interface GenDataType
Overrides:
getModelInfo in class GenBaseImpl

initialize

public void initialize(EDataType eDataType)
Specified by:
initialize in interface GenDataType

reconcile

public boolean reconcile(GenDataType oldGenDataTypeVersion)
Specified by:
reconcile in interface GenDataType

reconcileSettings

protected void reconcileSettings(GenDataType oldGenDataTypeVersion)

reconcile

public boolean reconcile()
Specified by:
reconcile in interface GenBase

Copyright 2001-2003 IBM Corporation and others.
All Rights Reserved.