Enum 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.
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

Defined in the sis-referencing module

  • 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 type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static KeywordStyle 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:
      Illegal­Argument­Exception - if this enum type has no constant with the specified name
      Null­Pointer­Exception - if the argument is null