- All Implemented Interfaces:
Serializable,Comparable<Obligation>
@UML(identifier="MD_ObligationCode",
specification=ISO_19115)
public final class Obligation
extends CodeList<Obligation>
Obligation of the element or entity.
- Since:
- 2.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class CodeList
CodeList.Filter -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObligationElement is required when a specific condition is met.static final ObligationElement is always required.static final ObligationElement is not required. -
Method Summary
Modifier and TypeMethodDescriptionfamily()Returns the list of enumerations of the same kind as this enum.static ObligationReturns the obligation that matches the given string, or returns a new one if none match it.static Obligation[]values()Returns the list ofObligations.
-
Field Details
-
MANDATORY
@UML(identifier="mandatory", obligation=CONDITIONAL, specification=ISO_19115) public static final Obligation MANDATORYElement is always required. -
OPTIONAL
@UML(identifier="optional", obligation=CONDITIONAL, specification=ISO_19115) public static final Obligation OPTIONALElement is not required. -
CONDITIONAL
@UML(identifier="conditional", obligation=CONDITIONAL, specification=ISO_19115) public static final Obligation CONDITIONALElement is required when a specific condition is met.
-
-
Method Details
-
values
Returns the list ofObligations.- Returns:
- The list of codes declared in the current JVM.
-
family
Returns the list of enumerations of the same kind as this enum.- Specified by:
familyin classCodeList<Obligation>- Returns:
- The codes of the same kind as this code.
-
valueOf
Returns the obligation that matches the given string, or returns a new one if none match it.- Parameters:
code- The name of the code to fetch or to create.- Returns:
- A code matching the given name.
-