Package org.apache.sis.io.wkt
Enum ElementKind
- Object
-
- Enum<ElementKind>
-
- ElementKind
-
- All Implemented Interfaces:
Serializable,Comparable<ElementKind>
public enum ElementKind extends Enum<ElementKind>
Kind of an element in a Well Known Text. Different kinds of elements can be associated to different colors.- Since:
- 0.4
Defined in the
sis-referencingmodule
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AXISCoordinate system axes, often represented byAXIS[…]elements.CITATIONCitation (typically for the authority), often represented byCITATION[…]elements.CODE_LISTCode list values.DATUMDatum, often represented byDATUM[…]elements.ERRORUnformattable elements.EXTENTIDENTIFIERObject identifier, typically written almost last just before remarks.INTEGERInteger numbers.METHODOperation methods, often represented byPROJECTION[…]elements.NAMEObject name, typically written immediately after the WKT keyword and its opening bracket.NUMBERFloating point numbers (excluding integer types).PARAMETERName of parameters, often represented byPARAMETER[…]elements.REMARKSRemarks, often represented byREMARKS[…]elements.SCOPECRS, datum or operation scope, often represented bySCOPE[…]elements.UNITUnits of measurement, often represented byUNIT[…]elements.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ElementKindforType(Class<?> type)Returns the element kind for an object of the given type.static ElementKindvalueOf(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.
-
-
-
Enum Constant Detail
-
NAME
public static final ElementKind NAME
Object name, typically written immediately after the WKT keyword and its opening bracket.
-
IDENTIFIER
public static final ElementKind IDENTIFIER
Object identifier, typically written almost last just before remarks.
-
NUMBER
public static final ElementKind NUMBER
Floating point numbers (excluding integer types).
-
INTEGER
public static final ElementKind INTEGER
Integer numbers.
-
UNIT
public static final ElementKind UNIT
Units of measurement, often represented byUNIT[…]elements.
-
AXIS
public static final ElementKind AXIS
Coordinate system axes, often represented byAXIS[…]elements.
-
CODE_LIST
public static final ElementKind CODE_LIST
Code list values.
-
PARAMETER
public static final ElementKind PARAMETER
Name of parameters, often represented byPARAMETER[…]elements.
-
METHOD
public static final ElementKind METHOD
Operation methods, often represented byPROJECTION[…]elements.
-
DATUM
public static final ElementKind DATUM
Datum, often represented byDATUM[…]elements.
-
SCOPE
public static final ElementKind SCOPE
CRS, datum or operation scope, often represented bySCOPE[…]elements.
-
EXTENT
public static final ElementKind EXTENT
-
CITATION
public static final ElementKind CITATION
Citation (typically for the authority), often represented byCITATION[…]elements.
-
REMARKS
public static final ElementKind 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
ElementKindwill have some non-ASCII characters replaced by ASCII ones (e.g. "é" → "e").
-
ERROR
public static final ElementKind ERROR
Unformattable elements.
-
-
Method Detail
-
values
public static ElementKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ElementKind c : ElementKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ElementKind valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
forType
public static ElementKind forType(Class<?> type)
Returns the element kind for an object of the given type. The current implementation defines the following associations:
The given type can be any sub-type of the above types. If an object implements more than one of the above interfaces, then the selectedMapping from Java type to WKT element Base type Kind DatumDATUMOperationMethodMETHODGeneralParameterValuePARAMETERCoordinateSystemAxisAXISIdentifierIDENTIFIERCitationCITATIONCodeListCODE_LISTExtentEXTENTUnitUNITNumberINTEGERorNUMBERElementKindis arbitrary.- Parameters:
type- the object type, ornull.- Returns:
- the element kind of the given type, or
nullif none match.
-
-