org.opengis.metadata.acquisition
Class Priority

Show UML class diagram
Object
  extended by CodeList<Priority>
      extended by Priority
All Implemented Interfaces:
Serializable, Comparable<Priority>

@UML(identifier="MI_PriorityCode",
     specification=ISO_19115_2)
public final class Priority
extends CodeList<Priority>

Ordered list of priorities.

Since:
2.3
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class CodeList
CodeList.Filter
 
Field Summary
static Priority CRITICAL
          Decisive importance.
static Priority HIGH_IMPORTANCE
          Requires resources to be made available.
static Priority LOW_IMPORTANCE
          To be completed when resources are available
static Priority MEDIUM_IMPORTANCE
          Normal operation priority.
 
Method Summary
 Priority[] family()
          Returns the list of codes of the same kind than this code list element.
static Priority valueOf(String code)
          Returns the priority that matches the given string, or returns a new one if none match it.
static Priority[] values()
          Returns the list of Prioritys.
 
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

CRITICAL

@UML(identifier="critical",
     obligation=CONDITIONAL,
     specification=ISO_19115_2)
public static final Priority CRITICAL
Decisive importance.


HIGH_IMPORTANCE

@UML(identifier="highImportance",
     obligation=CONDITIONAL,
     specification=ISO_19115_2)
public static final Priority HIGH_IMPORTANCE
Requires resources to be made available.


MEDIUM_IMPORTANCE

@UML(identifier="mediumImportance",
     obligation=CONDITIONAL,
     specification=ISO_19115_2)
public static final Priority MEDIUM_IMPORTANCE
Normal operation priority.


LOW_IMPORTANCE

@UML(identifier="lowImportance",
     obligation=CONDITIONAL,
     specification=ISO_19115_2)
public static final Priority LOW_IMPORTANCE
To be completed when resources are available

Method Detail

values

public static Priority[] values()
Returns the list of Prioritys.

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

family

public Priority[] 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<Priority>
Returns:
The codes of the same kind than this code.

valueOf

public static Priority valueOf(String code)
Returns the priority 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.