Enum Class Highway

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

public enum Highway extends Enum<Highway> implements AmenityOrWay
Supported types of the OSM highway="*" attribute. See the definition of highway on the OpenStreetMap wiki.
Author:
Andrew Pavlin, KA2DDO
  • Enum Constant Details

    • road

      public static final Highway road
    • motorway

      public static final Highway motorway
    • trunk

      public static final Highway trunk
    • primary

      public static final Highway primary
    • secondary

      public static final Highway secondary
    • tertiary

      public static final Highway tertiary
    • residential

      public static final Highway residential
    • unclassified

      public static final Highway unclassified
    • living_street

      public static final Highway living_street
    • service

      public static final Highway service
    • track

      public static final Highway track
    • pedestrian

      public static final Highway pedestrian
    • raceway

      public static final Highway raceway
    • services

      public static final Highway services
    • rest_area

      public static final Highway rest_area
    • bus_guideway

      public static final Highway bus_guideway
    • path

      public static final Highway path
    • cycleway

      public static final Highway cycleway
    • footway

      public static final Highway footway
    • bridleway

      public static final Highway bridleway
    • byway

      public static final Highway byway
    • construction

      public static final Highway construction
    • steps

      public static final Highway steps
    • speed_camera

      public static final Highway speed_camera
    • bus_stop

      public static final Highway bus_stop
    • escape

      public static final Highway escape
    • traffic_signals

      public static final Highway traffic_signals
  • Method Details

    • values

      public static Highway[] 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 Highway 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 Highway value(String name)
      Get the enum value associated with the string name specified.
      Parameters:
      name - String to convert into an Enum
      Returns:
      Highway for the string name, or null if no match