org.eclipse.emf.ecore.impl
Class EDataTypeImpl

java.lang.Object
  |
  +--org.eclipse.emf.common.notify.impl.NotifierImpl
        |
        +--org.eclipse.emf.ecore.impl.EObjectImpl
              |
              +--org.eclipse.emf.ecore.impl.EModelElementImpl
                    |
                    +--org.eclipse.emf.ecore.impl.ENamedElementImpl
                          |
                          +--org.eclipse.emf.ecore.impl.EClassifierImpl
                                |
                                +--org.eclipse.emf.ecore.impl.EDataTypeImpl
All Implemented Interfaces:
EClassifier, EDataType, EModelElement, ENamedElement, EObject, InternalEObject, Notifier
Direct Known Subclasses:
EEnumImpl

public class EDataTypeImpl
extends EClassifierImpl
implements EDataType

An implementation of the model object 'EData Type'.

The following features are implemented:


Inner classes inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
EObjectImpl.EPropertiesHolder
 
Field Summary
protected  java.lang.Object defaultValue
           
protected  boolean defaultValueIsSet
           
protected  boolean serializable
          The cached value of the 'Serializable' attribute.
protected static boolean SERIALIZABLE_EDEFAULT
          The default value of the 'Serializable' attribute.
 
Fields inherited from class org.eclipse.emf.ecore.impl.EClassifierImpl
INSTANCE_CLASS_EDEFAULT, INSTANCE_CLASS_NAME_EDEFAULT, instanceClass, instanceClassName, metaObjectID
 
Fields inherited from class org.eclipse.emf.ecore.impl.ENamedElementImpl
name, NAME_EDEFAULT
 
Fields inherited from class org.eclipse.emf.ecore.impl.EModelElementImpl
eAnnotations
 
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 EDataTypeImpl()
           
 
Method Summary
 NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)
          
 java.lang.Object eGet(EStructuralFeature eFeature, boolean resolve)
          
 NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, java.lang.Class baseClass, NotificationChain msgs)
          
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, java.lang.Class baseClass, NotificationChain msgs)
          
 boolean eIsSet(EStructuralFeature eFeature)
          
 void eSet(EStructuralFeature eFeature, java.lang.Object newValue)
          
protected  EClass eStaticClass()
          
 void eUnset(EStructuralFeature eFeature)
          
 java.lang.Object getDefaultValue()
          Returns the value of the 'Default Value' attribute.
 boolean isSerializable()
          
 void setInstanceClassGen(java.lang.Class instanceClass)
          
 void setSerializable(boolean newSerializable)
          
 java.lang.String toString()
          
 
Methods inherited from class org.eclipse.emf.ecore.impl.EClassifierImpl
dynamicIsInstance, getClassifierID, getEPackage, getInstanceClass, getInstanceClassGen, getInstanceClassName, getPrimitiveOrArrayClass, isInstance, setClassifierID, setInstanceClass, setInstanceClassName, setInstanceClassNameGen
 
Methods inherited from class org.eclipse.emf.ecore.impl.ENamedElementImpl
getName, getNameGen, setName
 
Methods inherited from class org.eclipse.emf.ecore.impl.EModelElementImpl
eObjectForURIFragmentSegment, eURIFragmentSegment, getEAnnotation, getEAnnotations
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicSetContainer, eClass, eContainer, eContainerFeatureID, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eInternalResource, eIsProxy, eProperties, eProxyURI, eResource, eSetClass, eSetProxyURI, eSetResource, eSetting, eSettingIndex, eSettings
 
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.ecore.EClassifier
getClassifierID, getEPackage, getInstanceClass, getInstanceClassName, isInstance, setInstanceClass, setInstanceClassName
 
Methods inherited from interface org.eclipse.emf.ecore.ENamedElement
getName, setName
 
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
 
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

SERIALIZABLE_EDEFAULT

protected static final boolean SERIALIZABLE_EDEFAULT
The default value of the 'Serializable' attribute.
See Also:
isSerializable()

serializable

protected boolean serializable
The cached value of the 'Serializable' attribute.
See Also:
isSerializable()

defaultValue

protected java.lang.Object defaultValue

defaultValueIsSet

protected boolean defaultValueIsSet
Constructor Detail

EDataTypeImpl

protected EDataTypeImpl()
Method Detail

getDefaultValue

public java.lang.Object getDefaultValue()
Description copied from interface: EClassifier
Returns the value of the 'Default Value' attribute.

The default value for the type, in the Java sense. For primitive types, it will be the Java primitive default wrapped appropriately. For enums, it will be the first enumerator. And for all other types derived from java.lang.Object, it will be null.

Specified by:
getDefaultValue in interface EClassifier
Overrides:
getDefaultValue in class EClassifierImpl
Following copied from interface: org.eclipse.emf.ecore.EClassifier
Returns:
the value of the 'Default Value' attribute.
See Also:
EcorePackage.getEClassifier_DefaultValue()

setInstanceClassGen

public void setInstanceClassGen(java.lang.Class instanceClass)
Description copied from class: EClassifierImpl
Overrides:
setInstanceClassGen in class EClassifierImpl

eStaticClass

protected EClass eStaticClass()
Overrides:
eStaticClass in class EClassifierImpl

isSerializable

public boolean isSerializable()
Specified by:
isSerializable in interface EDataType
Following copied from interface: org.eclipse.emf.ecore.EDataType
Returns:
the value of the 'Serializable' attribute.
See Also:
EDataType.setSerializable(boolean), EcorePackage.getEDataType_Serializable()

setSerializable

public void setSerializable(boolean newSerializable)
Specified by:
setSerializable in interface EDataType
Following copied from interface: org.eclipse.emf.ecore.EDataType
Parameters:
value - the new value of the 'Serializable' attribute.
See Also:
EDataType.isSerializable()

eInverseAdd

public NotificationChain eInverseAdd(InternalEObject otherEnd,
                                     int featureID,
                                     java.lang.Class baseClass,
                                     NotificationChain msgs)
Overrides:
eInverseAdd in class EClassifierImpl
Following copied from interface: org.eclipse.emf.ecore.InternalEObject
Returns:
accumulated notifications.

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        java.lang.Class baseClass,
                                        NotificationChain msgs)
Overrides:
eInverseRemove in class EClassifierImpl
Following copied from interface: org.eclipse.emf.ecore.InternalEObject
Returns:
accumulated notifications.

eBasicRemoveFromContainer

public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)
Overrides:
eBasicRemoveFromContainer in class EClassifierImpl
Following copied from interface: org.eclipse.emf.ecore.InternalEObject
Returns:
accumulated notifications.

eGet

public java.lang.Object eGet(EStructuralFeature eFeature,
                             boolean resolve)
Specified by:
eGet in interface EObject
Overrides:
eGet in class EClassifierImpl
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)

toString

public java.lang.String toString()
Overrides:
toString in class EClassifierImpl

eIsSet

public boolean eIsSet(EStructuralFeature eFeature)
Specified by:
eIsSet in interface EObject
Overrides:
eIsSet in class EClassifierImpl
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)

eSet

public void eSet(EStructuralFeature eFeature,
                 java.lang.Object newValue)
Specified by:
eSet in interface EObject
Overrides:
eSet in class EClassifierImpl
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.
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 EClassifierImpl
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)

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