Enum Class ElementKind
- All Implemented Interfaces:
Serializable
,Comparable<ElementKind>
,Constable
Kind of an element in a Well Known Text.
Different kinds of elements can be associated to different colors.
- Since:
- 0.4
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCoordinate system axes, often represented byAXIS[…]
elements.Citation (typically for the authority), often represented byCITATION[…]
elements.Code list values.Datum or reference frame, often represented byDATUM[…]
elements.Ensemble of datum or reference frames, represented byENSEMBLE[…]
elements.Unformattable elements.CRS, datum or operation domain of validity, often represented byAREA[…]
orBBOX[…]
elements.Object identifier, typically written almost last just before remarks.Integer numbers.Operation methods, often represented byPROJECTION[…]
elements.Object name, typically written immediately after the WKT keyword and its opening bracket.Floating point numbers (excluding integer types).Name of parameters, often represented byPARAMETER[…]
elements.Remarks, often represented byREMARKS[…]
elements.CRS, datum or operation scope, often represented bySCOPE[…]
elements.Units of measurement, often represented byUNIT[…]
elements. -
Method Summary
Modifier and TypeMethodDescriptionstatic ElementKind
Returns the element kind for an object of the given type.static ElementKind
Returns the enum constant of this class with the specified name.static ElementKind[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
NAME
Object name, typically written immediately after the WKT keyword and its opening bracket. -
IDENTIFIER
Object identifier, typically written almost last just before remarks. -
NUMBER
Floating point numbers (excluding integer types). -
INTEGER
Integer numbers. -
UNIT
Units of measurement, often represented byUNIT[…]
elements.- See Also:
-
AXIS
Coordinate system axes, often represented byAXIS[…]
elements.- See Also:
-
CODE_LIST
-
PARAMETER
Name of parameters, often represented byPARAMETER[…]
elements.- See Also:
-
METHOD
Operation methods, often represented byPROJECTION[…]
elements.- See Also:
-
DATUM
Datum or reference frame, often represented byDATUM[…]
elements.- See Also:
-
ENSEMBLE
Ensemble of datum or reference frames, represented byENSEMBLE[…]
elements.- Since:
- 1.5
- See Also:
-
SCOPE
CRS, datum or operation scope, often represented bySCOPE[…]
elements.- See Also:
-
EXTENT
CRS, datum or operation domain of validity, often represented byAREA[…]
orBBOX[…]
elements.- See Also:
-
CITATION
Citation (typically for the authority), often represented byCITATION[…]
elements.- See Also:
-
REMARKS
Remarks, often represented byREMARKS[…]
elements.When formatting an ISO 19162 Well Known Text, texts quoted as remarks preserve non-ASCII characters. By contrast, quoted texts in any other
ElementKind
will have some non-ASCII characters replaced by ASCII ones (e.g. "é" → "e").- See Also:
-
ERROR
Unformattable elements.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
forType
Returns the element kind for an object of the given type. The current implementation defines the following associations:Mapping from Java type to WKT element Base type Kind Datum
DATUM
DefaultDatumEnsemble
ENSEMBLE
OperationMethod
METHOD
GeneralParameterValue
PARAMETER
CoordinateSystemAxis
AXIS
Identifier
IDENTIFIER
Citation
CITATION
CodeList
CODE_LIST
Extent
EXTENT
Unit
UNIT
Number
INTEGER
orNUMBER
ElementKind
is arbitrary.- Parameters:
type
- the object type, ornull
.- Returns:
- the element kind of the given type, or
null
if none match.
-