Enum Class Railway

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

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

    • user_defined

      public static final Railway user_defined
    • rail

      public static final Railway rail
    • tram

      public static final Railway tram
    • light_rail

      public static final Railway light_rail
    • disused

      public static final Railway disused
    • narrow_gauge

      public static final Railway narrow_gauge
    • monorail

      public static final Railway monorail
    • subway

      public static final Railway subway
    • station

      public static final Railway station
    • platform

      public static final Railway platform
    • abandoned

      public static final Railway abandoned
    • subway_entrance

      public static final Railway subway_entrance
    • buffer_stop

      public static final Railway buffer_stop
    • funicular

      public static final Railway funicular
  • Method Details

    • values

      public static Railway[] 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 Railway 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 aeroway; only for types that are amenities.
      Specified by:
      getAmenityType in interface AmenityOrWay
      Returns:
      AmenityType for this aeroway type, or null if not an amenity
    • value

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