Enum Class KeywordStyle

Object
Enum<KeywordStyle>
KeywordStyle
All Implemented Interfaces:
Serializable, Comparable<Keyword­Style>, Constable

public enum KeywordStyle extends Enum<KeywordStyle>
Whether to use short or long WKT keywords.

Usage note

ISO 19162 recommends upper case short keywords, but camel case long keywords match more closely the programmatic interface names (e.g. Geodetic­CRS, etc).
Since:
0.6
  • Enum Constant Details

    • SHORT

      public static final KeywordStyle SHORT
      Short keywords. Examples: "Geod­CRS", "Vert­CRS", "Unit".
    • LONG

      public static final KeywordStyle LONG
      Long keywords. Examples: "Geodetic­CRS", "Vertical­CRS", "Angle­Unit".
    • DEFAULT

      public static final KeywordStyle DEFAULT
      Keywords style is determined by the WKT convention. Examples:
      • For Convention​.WKT2: "Geod­CRS", "Vert­CRS", "Angle­Unit" (keywords matching the ISO 19162 recommendations).
      • For Convention​.WKT2_SIMPLIFIED: "Geodetic­CRS", "Vertical­CRS", "Unit" (keywords matching the class or interface names).
  • Method Details

    • values

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