public enum ElementKind extends Enum<ElementKind>
Defined in the sis-metadata
module
Enum Constant and Description |
---|
AXIS
Coordinate system axes,
often represented by
AXIS[…] elements. |
CITATION
Citation (typically for the authority), often represented by
CITATION[…] elements. |
CODE_LIST
Code list values.
|
DATUM
Datum,
often represented by
DATUM[…] elements. |
ERROR
Unformattable elements.
|
EXTENT
|
IDENTIFIER
Object identifier, typically written almost last just before remarks.
|
INTEGER
Integer numbers.
|
METHOD
Operation methods,
often represented by
PROJECTION[…] elements. |
NAME
Object name, typically written immediately after the WKT keyword and its opening bracket.
|
NUMBER
Floating point numbers (excluding integer types).
|
PARAMETER
Name of parameters,
often represented by
PARAMETER[…] elements. |
REMARKS
Remarks,
often represented by
REMARKS[…] elements. |
SCOPE
CRS, datum or operation scope,
often represented by
SCOPE[…] elements. |
UNIT
Units of measurement,
often represented by
UNIT[…] elements. |
Modifier and Type | Method and Description |
---|---|
static ElementKind |
forType(Class<?> type)
Returns the element kind for an object of the given type.
|
static ElementKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ElementKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ElementKind NAME
public static final ElementKind IDENTIFIER
public static final ElementKind NUMBER
public static final ElementKind INTEGER
public static final ElementKind UNIT
UNIT[…]
elements.public static final ElementKind AXIS
AXIS[…]
elements.public static final ElementKind CODE_LIST
public static final ElementKind PARAMETER
PARAMETER[…]
elements.public static final ElementKind METHOD
PROJECTION[…]
elements.public static final ElementKind DATUM
DATUM[…]
elements.public static final ElementKind SCOPE
SCOPE[…]
elements.public static final ElementKind EXTENT
public static final ElementKind CITATION
CITATION[…]
elements.public static final ElementKind REMARKS
REMARKS[…]
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").
public static final ElementKind ERROR
public static ElementKind[] values()
for (ElementKind c : ElementKind.values()) System.out.println(c);
public static ElementKind valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ElementKind forType(Class<?> type)
Base type | Kind |
---|---|
Datum | DATUM |
OperationMethod | METHOD |
GeneralParameterValue | PARAMETER |
CoordinateSystemAxis | AXIS |
Identifier | IDENTIFIER |
Citation | CITATION |
CodeList | CODE_LIST |
Extent | EXTENT |
Unit | UNIT |
Number | INTEGER or NUMBER |
ElementKind
is arbitrary.type
- The object type, or null
.null
if none match.Copyright © 2010–2015 The Apache Software Foundation. All rights reserved.