org.eclipse.emf.ecore
Interface EEnum
- All Superinterfaces:
- EClassifier, EDataType, EModelElement, ENamedElement, EObject, Notifier
- All Known Implementing Classes:
- EEnumImpl
- public interface EEnum
- extends EDataType
A representation of the model object 'EEnum'.
The following features are supported:
- See Also:
EcorePackage.getEEnum()
Methods inherited from interface org.eclipse.emf.ecore.EObject |
eAllContents, eClass, eContainer, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
getELiterals
public EList getELiterals()
- Returns the value of the 'ELiterals' containment reference list.
The list contents are of type
EEnumLiteral
.
It is bidirectional and its opposite is 'EEnum
'.
It represents the enumerators of the enumeration.
- Returns:
- the value of the 'ELiterals' containment reference list.
- See Also:
EcorePackage.getEEnum_ELiterals()
,
EEnumLiteral.getEEnum()
getEEnumLiteral
public EEnumLiteral getEEnumLiteral(java.lang.String name)
-
Returns the enum literal with the given name, or
null
.
- Parameters:
the
- name in question.- Returns:
- the enum literal with the given name, or
null
.
getEEnumLiteral
public EEnumLiteral getEEnumLiteral(int value)
-
Returns the enum literal with the given value, or
null
.
The values may not be unique; it returns the first.
- Parameters:
the
- value in question.- Returns:
- the enum literal with the given value, or
null
.