org.eclipse.emf.ecore.impl
Class EEnumImpl

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
                                      |
                                      +--org.eclipse.emf.ecore.impl.EEnumImpl
All Implemented Interfaces:
EClassifier, EDataType, EEnum, EModelElement, ENamedElement, EObject, InternalEObject, Notifier

public class EEnumImpl
extends EDataTypeImpl
implements EEnum

An implementation of the model object 'EEnum'.

The following features are implemented:


Inner classes inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
EObjectImpl.EPropertiesHolder, EObjectImpl.EPropertiesHolderImpl
 
Field Summary
protected  EList eLiterals
          The cached value of the 'ELiterals' containment reference list.
 
Fields inherited from class org.eclipse.emf.ecore.impl.EDataTypeImpl
defaultValue, defaultValueIsSet, serializable, SERIALIZABLE_EDEFAULT
 
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 EEnumImpl()
           
 
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.
 EEnumLiteral getEEnumLiteral(int intValue)
           Returns the enum literal with the given value, or null.
 EEnumLiteral getEEnumLiteral(java.lang.String stringValue)
           Returns the enum literal with the given name, or null.
 EList getELiterals()
          
 boolean isInstance(java.lang.Object object)
          Determines if the specified Object is an instance of this.
 
Methods inherited from class org.eclipse.emf.ecore.impl.EDataTypeImpl
isSerializable, setInstanceClassGen, setSerializable, toString
 
Methods inherited from class org.eclipse.emf.ecore.impl.EClassifierImpl
dynamicIsInstance, getClassifierID, getEPackage, getInstanceClass, getInstanceClassGen, getInstanceClassName, getPrimitiveOrArrayClass, 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, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicFeatureID, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eHasSettings, eInternalResource, eIsProxy, eProperties, eProxyURI, eResource, eSetClass, eSetProxyURI, eSetResource, eSetting, eSettingDelegate, eSettings, eStaticFeatureCount
 
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.EDataType
isSerializable, setSerializable
 
Methods inherited from interface org.eclipse.emf.ecore.EClassifier
getClassifierID, getEPackage, getInstanceClass, getInstanceClassName, 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

eLiterals

protected EList eLiterals
The cached value of the 'ELiterals' containment reference list.
See Also:
getELiterals()
Constructor Detail

EEnumImpl

protected EEnumImpl()
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 EDataTypeImpl
Following copied from interface: org.eclipse.emf.ecore.EClassifier
Returns:
the value of the 'Default Value' attribute.
See Also:
EcorePackage.getEClassifier_DefaultValue()

isInstance

public boolean isInstance(java.lang.Object object)
Determines if the specified Object is an instance of this.
Specified by:
isInstance in interface EClassifier
Overrides:
isInstance in class EClassifierImpl
Following copied from interface: org.eclipse.emf.ecore.EClassifier
Parameters:
object - the object in question.
Returns:
whether the object is an instance.
See Also:
Class.isInstance(java.lang.Object)

eStaticClass

protected EClass eStaticClass()
Overrides:
eStaticClass in class EDataTypeImpl

getELiterals

public EList getELiterals()
Specified by:
getELiterals in interface EEnum
Following copied from interface: org.eclipse.emf.ecore.EEnum
Returns:
the value of the 'ELiterals' containment reference list.
See Also:
EcorePackage.getEEnum_ELiterals(), EEnumLiteral.getEEnum()

eInverseRemove

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

eBasicRemoveFromContainer

public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)
Overrides:
eBasicRemoveFromContainer in class EDataTypeImpl
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 EDataTypeImpl
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)

eIsSet

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

getEEnumLiteral

public EEnumLiteral getEEnumLiteral(java.lang.String stringValue)
Description copied from interface: EEnum
Returns the enum literal with the given name, or null.
Specified by:
getEEnumLiteral in interface EEnum
Following copied from interface: org.eclipse.emf.ecore.EEnum
Parameters:
the - name in question.
Returns:
the enum literal with the given name, or null.

getEEnumLiteral

public EEnumLiteral getEEnumLiteral(int intValue)
Description copied from interface: EEnum
Returns the enum literal with the given value, or null. The values may not be unique; it returns the first.
Specified by:
getEEnumLiteral in interface EEnum
Following copied from interface: org.eclipse.emf.ecore.EEnum
Parameters:
the - value in question.
Returns:
the enum literal with the given value, or null.

eInverseAdd

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

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