Interface EnumerationDescription

All Superinterfaces:
NamedElement
All Known Implementing Classes:
EnumerationDescription.AbstractBase, EnumerationDescription.ForLoadedEnumeration, EnumerationDescription.Latent

public interface EnumerationDescription extends NamedElement
Describes an enumeration value. Note that the Object.toString() method always returns the value as if the method was not overridden, i.e. the name of the enumeration constant.
  • Method Details

    • getValue

      String getValue()
      Returns the name of this instance's enumeration value.
      Returns:
      The name of this enumeration constant.
    • getEnumerationType

      TypeDescription getEnumerationType()
      Returns the type of this enumeration.
      Returns:
      The type of this enumeration.
    • load

      <T extends Enum<T>> T load(Class<T> type)
      Prepares this enumeration value to be loaded.
      Type Parameters:
      T - The enumeration type.
      Parameters:
      type - A type constant representing the enumeration value.
      Returns:
      The loaded enumeration constant corresponding to this value.