org.opengis.metadata
Class Obligation

Object
  extended by CodeList<Obligation>
      extended by 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
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class CodeList
CodeList.Filter
 
Field Summary
static Obligation CONDITIONAL
          Element is required when a specific condition is met.
static Obligation MANDATORY
          Element is always required.
static Obligation OPTIONAL
          Element is not required.
 
Method Summary
 Obligation[] family()
          Returns the list of codes of the same kind than this code list element.
static Obligation valueOf(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 of Obligations.
 
Methods inherited from class CodeList
compareTo, equals, identifier, name, names, ordinal, readResolve, toString, valueOf, valueOf
 
Methods inherited from class Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 of Obligations.

Returns:
The list of codes declared in the current JVM.

family

public Obligation[] 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 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. 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.


Copyright © 1994-2013 Open Geospatial Consortium. All Rights Reserved.