public interface EEnum extends EDataType
The following features are supported:
EcorePackage.getEEnum()
EDataType.Internal
Modifier and Type | Method and Description |
---|---|
EEnumLiteral |
getEEnumLiteral(int value)
Returns the enum literal with the given value, or
null . |
EEnumLiteral |
getEEnumLiteral(java.lang.String name)
Returns the enum literal with the given name, or
null . |
EEnumLiteral |
getEEnumLiteralByLiteral(java.lang.String literal)
Returns the enum literal with the given literal value, or
null . |
EList<EEnumLiteral> |
getELiterals()
Returns the value of the 'ELiterals' containment reference list.
|
isSerializable, setSerializable
getClassifierID, getDefaultValue, getEPackage, getETypeParameters, getInstanceClass, getInstanceClassName, getInstanceTypeName, isInstance, setInstanceClass, setInstanceClassName, setInstanceTypeName
getName, setName
getEAnnotation, getEAnnotations
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
EList<EEnumLiteral> getELiterals()
EEnumLiteral
.
It is bidirectional and its opposite is 'EEnum
'.
It represents the enumerators of the enumeration.
EcorePackage.getEEnum_ELiterals()
,
EEnumLiteral.getEEnum()
EEnumLiteral getEEnumLiteral(java.lang.String name)
null
.name
- name in question.null
.
EEnumLiteral getEEnumLiteral(int value)
null
.
The values may not be unique; it returns the first.value
- value in question.null
.
EEnumLiteral getEEnumLiteralByLiteral(java.lang.String literal)
null
.literal
- literal in question.null
.