@UML(identifier="MD_ObligationCode", specification=ISO_19115) public enum Obligation extends Enum<Obligation>
Obligation of the element or entity. The enum values declared here duplicate the code list elements declared in the
Obligationcode list from the metadata package.
Enum Constant Details
CONDITIONALElement is required when a specific condition is met.
OPTIONALElement is not required.
MANDATORYElement is always required.
FORBIDDENpublic static final Obligation FORBIDDENThe element should always be
null. This obligation code is used only when a sub-interface overrides an association and force it to a
nullvalue. An example is
- Departure from OGC/ISO abstract specification:
Departure due to constraint of the Java languageISO specifications sometime override a parent method with a comment saying that the method is not allowed for a particular class. Since there is no construct in Java for expressing this constraint in the method signature, GeoAPI defines a
FORBIDDENobligation (not in original ISO specifications) to be used with the
@UMLannotation and which adds a flag in the Java documentation.
valuespublic static Obligation values()Returns an array containing the constants of this enum type, in the order they are declared.
- an array containing the constants of this enum type, in the order they are declared
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)