- All Implemented Interfaces:
Serializable,Comparable<Obligation>,ControlledVocabulary
@UML(identifier="MD_ObligationCode",
specification=ISO_19115)
public final class Obligation
extends CodeList<Obligation>
Obligation of the element or entity.
Upcoming API change — enumeration
According ISO 19115,
According ISO 19115,
Obligation shall be an enumeration, not a code list.
Such enumeration already exists in the org.opengis.annotation package.
Consequently this Obligation class may be deleted in favor or org.opengis.annotation.Obligation
in GeoAPI 4.0. See GEO-199 for more information.- Since:
- 2.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opengis.util.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 codes of the same kind than this code list element.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.Methods inherited from class org.opengis.util.CodeList
compareTo, identifier, name, ordinal, readResolve, toString, valueOf, valueOf, valueOf, valuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opengis.util.ControlledVocabulary
names
-
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 codes of the same kind than this code list element. Invoking this method is equivalent to invokingvalues(), except that this method can be invoked on an instance of the parentCodeListclass.- Specified by:
familyin interfaceControlledVocabulary- Specified by:
familyin classCodeList<Obligation>- Returns:
- All code values for this code list.
-
valueOf
Returns the obligation that matches the given string, or returns a new one if none match it. This methods returns the first instance (in declaration order) for which the name is equals, ignoring case, to the given name. If no existing instance is found, then a new one is created for the given name.- Parameters:
code- The name of the code to fetch or to create.- Returns:
- A code matching the given name.
-