Package org.opengis.metadata.citation
Class 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
- Version:
- 3.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opengis.util.CodeList
CodeList.Filter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DateType
Date identifies when the resource was brought into existence.static final DateType
Date identifies when the resource was issued.static final DateType
Date identifies when the resource was examined or re-examined and improved or amended.private static final long
Serial number for compatibility with different versions.List of all enumerations of this type. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial number for compatibility with different versions.- See Also:
-
VALUES
List of all enumerations of this type. Must be declared before any enum declaration. -
CREATION
@UML(identifier="creation", obligation=CONDITIONAL, specification=ISO_19115) public static final DateType CREATIONDate identifies when the resource was brought into existence. -
PUBLICATION
@UML(identifier="publication", obligation=CONDITIONAL, specification=ISO_19115) public static final DateType PUBLICATIONDate identifies when the resource was issued. -
REVISION
@UML(identifier="revision", obligation=CONDITIONAL, specification=ISO_19115) public static final DateType REVISIONDate identifies when the resource was examined or re-examined and improved or amended.
-
-
Constructor Details
-
DateType
Constructs an enum with the given name. The new enum is automatically added to the list returned byvalues()
.- Parameters:
name
- The enum name. This name must not be in use by an other enum of this type.
-
-
Method Details
-
values
Returns the list ofDateType
s.- Returns:
- The list of codes declared in the current JVM.
-
family
Returns the list of enumerations of the same kind than this enum. -
valueOf
Returns the date type 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.
-