Package org.geotools.api.metadata
Class Obligation
- Object
-
- CodeList<Obligation>
-
- Obligation
-
- 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:
- GeoAPI 2.0
- Author:
- Martin Desruisseaux (IRD)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ObligationCONDITIONALElement is required when a specific condition is met.static ObligationMANDATORYElement is always required.static ObligationOPTIONALElement is not required.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Obligation[]family()Returns the list of enumerations of the same kind than this enum.static ObligationvalueOf(String code)Returns the obligation that matches the given string, or returns a new one if none match it.static Obligation[]values()Returns the list ofObligations.
-
-
-
Field Detail
-
MANDATORY
@UML(identifier="mandatory", obligation=CONDITIONAL, specification=ISO_19115) public static final Obligation MANDATORY
Element is always required.
-
OPTIONAL
@UML(identifier="optional", obligation=CONDITIONAL, specification=ISO_19115) public static final Obligation OPTIONAL
Element is not required.
-
CONDITIONAL
@UML(identifier="conditional", obligation=CONDITIONAL, specification=ISO_19115) public static final Obligation CONDITIONAL
Element is required when a specific condition is met.
-
-
Method Detail
-
values
public static Obligation[] values()
Returns the list ofObligations.- Returns:
- The list of codes declared in the current JVM.
-
family
public Obligation[] family()
Returns the list of enumerations of the same kind than this enum.- Specified by:
familyin classCodeList<Obligation>- Returns:
- The codes of the same kind than this code.
-
valueOf
public static Obligation valueOf(String code)
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.
-
-