Interface CdsEnumType<T>

All Superinterfaces:
CdsAnnotatable, CdsDefinition, CdsNamed, CdsSimpleType, CdsType

public interface CdsEnumType<T> extends CdsSimpleType
  • Method Details

    • enumerals

      Returns the enumerals of this CdsEnumType as a map, which maps the name of the enumeral to the enumeral.
      Returns:
      the enumerals of this enum type, not null
      See Also:
    • hasValue

      default boolean hasValue(Object value)
      Tests if this enum type has an enumeral with a given value.
      Parameters:
      value - the value to test for
      Returns:
      true if this enum type has an enumeral with a given value, false otherwise
    • isEnum

      default boolean isEnum()
      Description copied from interface: CdsType
      Returns true if this is an enum type.
      Specified by:
      isEnum in interface CdsType
      Returns:
      true if this is an enum type, otherwise false
    • accept

      default void accept(CdsVisitor visitor)
      Description copied from interface: CdsDefinition
      Accepts a CdsVisitor visiting the elements of this definition (depth-first)
      Specified by:
      accept in interface CdsDefinition
      Specified by:
      accept in interface CdsSimpleType
      Parameters:
      visitor - the CdsVisitor