Interface VdmEnum


public interface VdmEnum
Interface to manage the different properties an Edm.Enum literal contains.
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T extends VdmEnum>
    T
    getConstant(Class<T> enumType, String identifier)
    Helper function to resolve enum constant from given type reference and String identifier.
    default String
    Get the name property of the Edm.Enum literal
    default Long
    Get the value property of the Edm.Enum literal
  • Method Details

    • getName

      @Nonnull default String getName()
      Get the name property of the Edm.Enum literal
      Returns:
      The name property.
    • getValue

      @Nullable default Long getValue()
      Get the value property of the Edm.Enum literal
      Returns:
      The value property.
    • getConstant

      @Nullable static <T extends VdmEnum> T getConstant(@Nonnull Class<T> enumType, @Nullable String identifier)
      Helper function to resolve enum constant from given type reference and String identifier.
      Type Parameters:
      T - The generic enum type.
      Parameters:
      enumType - The enum type reference.
      identifier - The enum constant identifier.
      Returns:
      A