Class KeywordType
- java.lang.Object
-
- org.opengis.util.CodeList<KeywordType>
-
- org.opengis.metadata.identification.KeywordType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<KeywordType>
@UML(identifier="MD_KeywordTypeCode", specification=ISO_19115) public final class KeywordType extends CodeList<KeywordType>
Methods used to group similar keywords.- Since:
- 2.0
- Version:
- 3.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opengis.util.CodeList
CodeList.Filter
-
-
Field Summary
Fields Modifier and Type Field Description static KeywordType
DISCIPLINE
Keyword identifies a branch of instruction or specialized learning.static KeywordType
PLACE
Keyword identifies a location.private static long
serialVersionUID
Serial number for compatibility with different versions.static KeywordType
STRATUM
Keyword identifies the layer(s) of any deposited substance.static KeywordType
TEMPORAL
Keyword identifies a time period related to the dataset.static KeywordType
THEME
Keyword identifies a particular subject or topic.private static java.util.List<KeywordType>
VALUES
List of all enumerations of this type.
-
Constructor Summary
Constructors Modifier Constructor Description private
KeywordType(java.lang.String name)
Constructs an enum with the given name.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KeywordType[]
family()
Returns the list of enumerations of the same kind than this enum.static KeywordType
valueOf(java.lang.String code)
Returns the KeywordType that matches the given string, or returns a new one if none match it.static KeywordType[]
values()
Returns the list ofKeywordType
s.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Serial number for compatibility with different versions.- See Also:
- Constant Field Values
-
VALUES
private static final java.util.List<KeywordType> VALUES
List of all enumerations of this type. Must be declared before any enum declaration.
-
DISCIPLINE
@UML(identifier="discipline", obligation=CONDITIONAL, specification=ISO_19115) public static final KeywordType DISCIPLINE
Keyword identifies a branch of instruction or specialized learning.
-
PLACE
@UML(identifier="place", obligation=CONDITIONAL, specification=ISO_19115) public static final KeywordType PLACE
Keyword identifies a location.
-
STRATUM
@UML(identifier="stratum", obligation=CONDITIONAL, specification=ISO_19115) public static final KeywordType STRATUM
Keyword identifies the layer(s) of any deposited substance.
-
TEMPORAL
@UML(identifier="temporal", obligation=CONDITIONAL, specification=ISO_19115) public static final KeywordType TEMPORAL
Keyword identifies a time period related to the dataset.
-
THEME
@UML(identifier="theme", obligation=CONDITIONAL, specification=ISO_19115) public static final KeywordType THEME
Keyword identifies a particular subject or topic.
-
-
Constructor Detail
-
KeywordType
private KeywordType(java.lang.String name)
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 Detail
-
values
public static KeywordType[] values()
Returns the list ofKeywordType
s.- Returns:
- The list of codes declared in the current JVM.
-
family
public KeywordType[] family()
Returns the list of enumerations of the same kind than this enum.- Specified by:
family
in classCodeList<KeywordType>
- Returns:
- The codes of the same kind than this code.
-
valueOf
public static KeywordType valueOf(java.lang.String code)
Returns the KeywordType 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.
-
-