Class Context

All Implemented Interfaces:
Serializable, Comparable<Context>, ControlledVocabulary

@UML(identifier="MI_ContextCode", specification=ISO_19115_2) public final class Context extends CodeList<Context>
Designation of criterion for defining the context of the scanning process event.
Since:
2.3
See Also:
  • Field Details

  • Method Details

    • values

      public static Context[] values()
      Returns the list of Contexts.
      Returns:
      the list of codes declared in the current JVM.
    • family

      public Context[] family()
      Returns the list of codes of the same kind than this code list element. Invoking this method is equivalent to invoking values(), except that this method can be invoked on an instance of the parent CodeList class.
      Specified by:
      family in interface ControlledVocabulary
      Specified by:
      family in class CodeList<Context>
      Returns:
      all code values for this code list.
    • valueOf

      public static Context valueOf(String code)
      Returns the context that matches the given string, or returns a new one if none match it. More specifically, this methods returns the first instance for which name().equals(code) returns true. 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.