public interface EEnumLiteral extends ENamedElement
EcorePackage.getEEnumLiteral()| Modifier and Type | Method and Description |
|---|---|
EEnum |
getEEnum()
Returns the value of the 'EEnum' container reference.
|
Enumerator |
getInstance()
Returns the value of the 'Instance' attribute.
|
java.lang.String |
getLiteral()
Returns the value of the 'Literal' attribute.
|
int |
getValue()
Returns the value of the 'Value' attribute.
|
void |
setInstance(Enumerator value)
Sets the value of the '
Instance' attribute. |
void |
setLiteral(java.lang.String value)
Sets the value of the '
Literal' attribute. |
void |
setValue(int value)
Sets the value of the '
Value' attribute. |
getName, setNamegetEAnnotation, getEAnnotationseAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetint getValue()
It represents the int value of an enumerator.
setValue(int),
EcorePackage.getEEnumLiteral_Value()void setValue(int value)
Value' attribute.
value - the new value of the 'Value' attribute.getValue()Enumerator getInstance()
It represents the actual Java instance value.
setInstance(Enumerator),
EcorePackage.getEEnumLiteral_Instance()void setInstance(Enumerator value)
Instance' attribute.
value - the new value of the 'Instance' attribute.getInstance()java.lang.String getLiteral()
This is the literal, string value that represents this enumerator value.
This is used in persisting instances of enumerated type.
If set to null, it will return the name, instead.
setLiteral(String),
EcorePackage.getEEnumLiteral_Literal()void setLiteral(java.lang.String value)
Literal' attribute.
value - the new value of the 'Literal' attribute.getLiteral()EEnum getEEnum()
ELiterals'.
It represents the contain enumeration.
EcorePackage.getEEnumLiteral_EEnum(),
EEnum.getELiterals()Copyright © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature