Enum Class Diplomatic

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

public enum Diplomatic extends Enum<Diplomatic> implements AmenityOrWay
This enum defines the commonly-used values of the diplomatic="*" attribute of OSM. See the definition of diplomatic on the OpenStreetMap wiki.
Author:
Andrew Pavlin, KA2DDO
  • Enum Constant Details

    • embassy

      public static final Diplomatic embassy
    • consulate

      public static final Diplomatic consulate
    • liaison

      public static final Diplomatic liaison
    • consulate_general

      public static final Diplomatic consulate_general
  • Method Details

    • values

      public static Diplomatic[] 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 Diplomatic 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
    • wayType

      public WayType wayType()
      Report the WayType for rendering this type of Way.
      Specified by:
      wayType in interface AmenityOrWay
      Returns:
      WayType
    • getAmenityType

      public AmenityType getAmenityType()
      Get amenity type associated with this enumeration; only for types that are amenities.
      Specified by:
      getAmenityType in interface AmenityOrWay
      Returns:
      AmenityType for this type, or null if not an amenity
    • value

      public static Diplomatic value(String name)
      Get the enum value associated with the string name specified.
      Parameters:
      name - String to convert into an Enum
      Returns:
      Diplomatic for the string name, or null if no match