Package org.opengis.metadata
Class Datatype
- java.lang.Object
-
- org.opengis.util.CodeList<Datatype>
-
- org.opengis.metadata.Datatype
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Datatype>
@UML(identifier="MD_DatatypeCode", specification=ISO_19115) public final class Datatype extends CodeList<Datatype>
Datatype of element or entity.- 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 DatatypeABSTRACT_CLASSClass that cannot be directly instantiated.static DatatypeAGGREGATE_CLASSClass that is composed of classes it is connected to by an aggregate relationship.static DatatypeASSOCIATIONSemantic relationship between two classes that involves connections among their instances.static DatatypeCHARACTER_STRINGFree text field.static DatatypeCLASSDescriptor of a set of objects that share the same attributes, operations, methods, relationships, and behavior.static DatatypeCODE_LISTFlexible enumeration useful for expressing a long list of values, can be extended.static DatatypeCODE_LIST_ELEMENTPermissible value for a codelist or enumeration.static DatatypeDATATYPE_CLASSClass with few or no operations whose primary purpose is to hold the abstract state of another class for transmittal, storage, encoding or persistent storage.static DatatypeENUMERATIONData type whose instances form a list of named literal values, not extendable.static DatatypeINTEGERNumerical field.static DatatypeINTERFACE_CLASSNamed set of operations that characterize the behavior of an element.static DatatypeMETA_CLASSClass whose instances are classes.private static longserialVersionUIDSerial number for compatibility with different versions.static DatatypeSPECIFIED_CLASSSubclass that may be substituted for its superclass.static DatatypeTYPE_CLASSClass used for specification of a domain of instances (objects), together with the operations applicable to the objects.static DatatypeUNION_CLASSClass describing a selection of one of the specified types.private static java.util.List<Datatype>VALUESList of all enumerations of this type.
-
Constructor Summary
Constructors Modifier Constructor Description privateDatatype(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 Datatype[]family()Returns the list of enumerations of the same kind than this enum.static DatatypevalueOf(java.lang.String code)Returns the datatype that matches the given string, or returns a new one if none match it.static Datatype[]values()Returns the list ofDatatypes.
-
-
-
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<Datatype> VALUES
List of all enumerations of this type. Must be declared before any enum declaration.
-
CLASS
@UML(identifier="class", obligation=CONDITIONAL, specification=ISO_19115) public static final Datatype CLASS
Descriptor of a set of objects that share the same attributes, operations, methods, relationships, and behavior.
-
CODE_LIST
@UML(identifier="codelist", obligation=CONDITIONAL, specification=ISO_19115) public static final Datatype CODE_LIST
Flexible enumeration useful for expressing a long list of values, can be extended.
-
ENUMERATION
@UML(identifier="enumeration", obligation=CONDITIONAL, specification=ISO_19115) public static final Datatype ENUMERATION
Data type whose instances form a list of named literal values, not extendable.
-
CODE_LIST_ELEMENT
@UML(identifier="codelistElement", obligation=CONDITIONAL, specification=ISO_19115) public static final Datatype CODE_LIST_ELEMENT
Permissible value for a codelist or enumeration.
-
ABSTRACT_CLASS
@UML(identifier="abstractClass", obligation=CONDITIONAL, specification=ISO_19115) public static final Datatype ABSTRACT_CLASS
Class that cannot be directly instantiated.
-
AGGREGATE_CLASS
@UML(identifier="aggregateClass", obligation=CONDITIONAL, specification=ISO_19115) public static final Datatype AGGREGATE_CLASS
Class that is composed of classes it is connected to by an aggregate relationship.
-
SPECIFIED_CLASS
@UML(identifier="specifiedClass", obligation=CONDITIONAL, specification=ISO_19115) public static final Datatype SPECIFIED_CLASS
Subclass that may be substituted for its superclass.
-
DATATYPE_CLASS
@UML(identifier="datatypeClass", obligation=CONDITIONAL, specification=ISO_19115) public static final Datatype DATATYPE_CLASS
Class with few or no operations whose primary purpose is to hold the abstract state of another class for transmittal, storage, encoding or persistent storage.
-
INTERFACE_CLASS
@UML(identifier="interfaceClass", obligation=CONDITIONAL, specification=ISO_19115) public static final Datatype INTERFACE_CLASS
Named set of operations that characterize the behavior of an element.
-
UNION_CLASS
@UML(identifier="unionClass", obligation=CONDITIONAL, specification=ISO_19115) public static final Datatype UNION_CLASS
Class describing a selection of one of the specified types.
-
META_CLASS
@UML(identifier="metaClass", obligation=CONDITIONAL, specification=ISO_19115) public static final Datatype META_CLASS
Class whose instances are classes.
-
TYPE_CLASS
@UML(identifier="typeClass", obligation=CONDITIONAL, specification=ISO_19115) public static final Datatype TYPE_CLASS
Class used for specification of a domain of instances (objects), together with the operations applicable to the objects. A type may have attributes and associations.
-
CHARACTER_STRING
@UML(identifier="characterString", obligation=CONDITIONAL, specification=ISO_19115) public static final Datatype CHARACTER_STRING
Free text field.
-
INTEGER
@UML(identifier="integer", obligation=CONDITIONAL, specification=ISO_19115) public static final Datatype INTEGER
Numerical field.
-
ASSOCIATION
@UML(identifier="association", obligation=CONDITIONAL, specification=ISO_19115) public static final Datatype ASSOCIATION
Semantic relationship between two classes that involves connections among their instances.
-
-
Constructor Detail
-
Datatype
private Datatype(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 Datatype[] values()
Returns the list ofDatatypes.- Returns:
- The list of codes declared in the current JVM.
-
family
public Datatype[] family()
Returns the list of enumerations of the same kind than this enum.
-
valueOf
public static Datatype valueOf(java.lang.String code)
Returns the datatype 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.
-
-