Class EnumType


  • public class EnumType
    extends ModelElement
    Description of an enum's attributes and extensibility.
    • Constructor Detail

      • EnumType

        public EnumType​(java.lang.Class<?> enumTypeClass)
    • Method Detail

      • isExtensible

        public boolean isExtensible()
        Whether the enum's values can be extended in an enum content provided in a IRuntimeRepository.
      • getEnumContentQualifiedName

        public java.lang.String getEnumContentQualifiedName()
        The qualified name an enum content extending this enum must have.
        See Also:
        isExtensible()
      • getAttributes

        public java.util.List<EnumAttribute> getAttributes()
        Returns models for all this enum's attributes
      • getAttribute

        public EnumAttribute getAttribute​(java.lang.String name)
        Returns the model for the attribute with the given name or null if no such attribute exists.
      • getAttributenames

        public java.util.List<java.lang.String> getAttributenames()
        Returns the names of all this enum's attributes.
      • getIdAttribute

        public EnumAttribute getIdAttribute()
        The model for the attribute used to uniquely identify an instance of this enum.
      • getDisplayNameAttribute

        public EnumAttribute getDisplayNameAttribute()
        The model for the attribute used to display an instance of this enum in human readable form.
      • getEnumClass

        public java.lang.Class<?> getEnumClass()
        Returns the class this enum type represents.