public class EnumType extends ModelElement
| Modifier and Type | Method and Description |
|---|---|
EnumAttribute |
getAttribute(String name)
Returns the model for the attribute with the given name or
null if no such attribute
exists. |
List<String> |
getAttributenames()
Returns the names of all this enum's attributes.
|
List<EnumAttribute> |
getAttributes()
Returns models for all this enum's attributes
|
EnumAttribute |
getDisplayNameAttribute()
The model for the attribute used to display an instance of this enum in human readable form.
|
String |
getEnumContentQualifiedName()
The qualified name an enum content extending this enum must have.
|
EnumAttribute |
getIdAttribute()
The model for the attribute used to uniquely identify an instance of this enum.
|
protected MessagesHelper |
getMessageHelper() |
protected String |
getMessageKey(DocumentationKind messageType) |
boolean |
isExtensible()
Whether the enum's values can be extended in an enum content provided in a
IRuntimeRepository. |
String |
toString() |
createMessageHelper, getDescription, getDocumentation, getExtensionPropertyIds, getExtensionPropertyValue, getLabel, getName, getRelevantProductObject, invokeField, invokeMethodpublic static final String KIND_NAME
public EnumType(Class<?> enumTypeClass)
public boolean isExtensible()
IRuntimeRepository.public String getEnumContentQualifiedName()
isExtensible()public List<EnumAttribute> getAttributes()
public EnumAttribute getAttribute(String name)
null if no such attribute
exists.public List<String> getAttributenames()
public EnumAttribute getIdAttribute()
public EnumAttribute getDisplayNameAttribute()
protected MessagesHelper getMessageHelper()
getMessageHelper in class ModelElementprotected String getMessageKey(DocumentationKind messageType)
getMessageKey in class ModelElementpublic String toString()
toString in class ModelElementCopyright © 2016. All rights reserved.