Class EnumType

java.lang.Object
org.faktorips.runtime.model.type.ModelElement
org.faktorips.runtime.model.enumtype.EnumType

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

  • Constructor Details

    • EnumType

      public EnumType(Class<?> enumTypeClass)
  • Method Details

    • isExtensible

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

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

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

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

      public List<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.
    • getMessageHelper

      protected MessagesHelper getMessageHelper()
      Specified by:
      getMessageHelper in class ModelElement
    • getMessageKey

      protected String getMessageKey(DocumentationKind messageType)
      Specified by:
      getMessageKey in class ModelElement
    • getEnumClass

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

      public String toString()
      Overrides:
      toString in class ModelElement
    • findSuperEnumType

      public Optional<EnumType> findSuperEnumType()
    • getDocumentation

      protected String getDocumentation(Locale locale, DocumentationKind type, String fallback)
      Overrides:
      getDocumentation in class ModelElement