Interface VdmEnum
public interface VdmEnum
Interface to manage the different properties an Edm.Enum literal contains.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends VdmEnum>
TgetConstant
(Class<T> enumType, String identifier) Helper function to resolve enum constant from given type reference and String identifier.default String
getName()
Get the name property of the Edm.Enum literaldefault Long
getValue()
Get the value property of the Edm.Enum literal
-
Method Details
-
getName
Get the name property of the Edm.Enum literal- Returns:
- The name property.
-
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
-