Enum Class ElementKind

Object
Enum<ElementKind>
ElementKind
All Implemented Interfaces:
Serializable, Comparable<Element­Kind>, Constable

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
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum​.Enum­Desc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Coordinate system axes, often represented by AXIS[…] elements.
    Citation (typically for the authority), often represented by CITATION[…] elements.
    Code list values.
    Datum or reference frame, often represented by DATUM[…] elements.
    Ensemble of datum or reference frames, represented by ENSEMBLE[…] elements.
    Unformattable elements.
    CRS, datum or operation domain of validity, often represented by AREA[…] or BBOX[…] elements.
    Object identifier, typically written almost last just before remarks.
    Integer numbers.
    Operation methods, often represented by PROJECTION[…] 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 by PARAMETER[…] elements.
    Remarks, often represented by REMARKS[…] elements.
    CRS, datum or operation scope, often represented by SCOPE[…] elements.
    Units of measurement, often represented by UNIT[…] elements.
  • Method Summary

    Modifier and Type
    Method
    Description
    for­Type(Class<?> type)
    Returns the element kind for an object of the given type.
    Returns the enum constant of this class with the specified name.
    static Element­Kind[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    get­Class, notify, notify­All, wait, wait, wait
  • Enum Constant Details

  • Method Details

    • values

      public static ElementKind[] 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

      public static ElementKind valueOf(String name)
      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:
      Illegal­Argument­Exception - if this enum class has no constant with the specified name
      Null­Pointer­Exception - 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:
      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 or NUMBER
      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 selected Element­Kind is arbitrary.
      Parameters:
      type - the object type, or null.
      Returns:
      the element kind of the given type, or null if none match.