org.opengis.metadata.citation
Class DateType

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

@UML(identifier="CI_DateTypeCode",
     specification=ISO_19115)
public final class DateType
extends CodeList<DateType>

Identification of when a given event occurred

Since:
2.0
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class CodeList
CodeList.Filter
 
Field Summary
static DateType CREATION
          Date identifies when the resource was brought into existence.
static DateType PUBLICATION
          Date identifies when the resource was issued.
static DateType REVISION
          Date identifies when the resource was examined or re-examined and improved or amended.
 
Method Summary
 DateType[] family()
          Returns the list of enumerations of the same kind than this enum.
static DateType valueOf(String code)
          Returns the date type that matches the given string, or returns a new one if none match it.
static DateType[] values()
          Returns the list of DateTypes.
 
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

CREATION

@UML(identifier="creation",
     obligation=CONDITIONAL,
     specification=ISO_19115)
public static final DateType CREATION
Date identifies when the resource was brought into existence.


PUBLICATION

@UML(identifier="publication",
     obligation=CONDITIONAL,
     specification=ISO_19115)
public static final DateType PUBLICATION
Date identifies when the resource was issued.


REVISION

@UML(identifier="revision",
     obligation=CONDITIONAL,
     specification=ISO_19115)
public static final DateType REVISION
Date identifies when the resource was examined or re-examined and improved or amended.

Method Detail

values

public static DateType[] values()
Returns the list of DateTypes.

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

family

public DateType[] family()
Returns the list of enumerations of the same kind than this enum.

Specified by:
family in class CodeList<DateType>
Returns:
The codes of the same kind than this code.

valueOf

public static DateType valueOf(String code)
Returns the date type 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-2012 Open Geospatial Consortium. All Rights Reserved.