Enum Class OSMColour

java.lang.Object
java.lang.Enum<OSMColour>
org.ka2ddo.yaac.osm.OSMColour
All Implemented Interfaces:
Serializable, Comparable<OSMColour>, Constable

public enum OSMColour extends Enum<OSMColour>
This specifies color attribute values that can be found in OSM tags, to handle types of amenities where the type is the same but the map rendering should be of a different color to show some significance of the instance. For example, a Node with the seamark:type tag value of "buoy_lateral" would probably have a seamark:buoy_lateral:colour tag indicating which side of a channel the buoy was on, which would be significant on a marine chart. However, this is not restricted to marine map features.

Any new values for any of these attributes must be added at the end of the list to maintain enum ordinal stability and therefore backwards compatibility with maps imported with previous versions of this enumeration.

Author:
Andrew Pavlin, KA2DDO
  • Enum Constant Details

  • Method Details

    • values

      public static OSMColour[] 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 OSMColour 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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • value

      public static OSMColour value(String name)
      Get the OSMColour object corresponding to this
      Parameters:
      name - String name of colour
      Returns:
      OSMColour object matching the name, or null if it is an unsupported colour