Enum Class RequirementLevel
- All Implemented Interfaces:
Serializable, Comparable<RequirementLevel>, Constable
The level of requirement that applies to a given field within a class.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates a required field.Indicates an optional field.Indicates an optional, but recommended, field. -
Method Summary
Modifier and TypeMethodDescriptionstatic RequirementLevelReturns the enum constant of this class with the specified name.static RequirementLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OPTIONAL
Indicates an optional field. -
RECOMMENDED
Indicates an optional, but recommended, field. A LinkML validator may emit a warning if the field is not set in a given instance. -
MANDATORY
Indicates a required field.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-