Class Obligation

java.lang.Object
org.opengis.util.CodeList<Obligation>
org.opengis.metadata.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:
2.0
Version:
3.0
See Also:
  • Field Details

  • Constructor Details

    • Obligation

      private Obligation(String name)
      Constructs an enum with the given name. The new enum is automatically added to the list returned by values().
      Parameters:
      name - The enum name. This name must not be in use by an other enum of this type.
  • Method Details

    • values

      public static Obligation[] values()
      Returns the list of Obligations.
      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:
      family in class CodeList<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.