Enum Class Attraction

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

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

    • user_defined

      public static final Attraction user_defined
      Other types of Attractions not standardized in OpenStreetMap.
    • amusement_ride

      public static final Attraction amusement_ride
    • animal

      public static final Attraction animal
    • big_wheel

      public static final Attraction big_wheel
    • bumper_car

      public static final Attraction bumper_car
    • bungee_jumping

      public static final Attraction bungee_jumping
    • dark_ride

      public static final Attraction dark_ride
    • drop_tower

      public static final Attraction drop_tower
    • formal_garden

      public static final Attraction formal_garden
    • game_installation

      public static final Attraction game_installation
    • kiddle_ride

      public static final Attraction kiddle_ride
    • log_flume

      public static final Attraction log_flume
    • maze

      public static final Attraction maze
    • pirate_ship

      public static final Attraction pirate_ship
    • river_rafting

      public static final Attraction river_rafting
    • rock_art

      public static final Attraction rock_art
    • roller_coaster

      public static final Attraction roller_coaster
    • alpine_coaster

      public static final Attraction alpine_coaster
    • summer_toboggan

      public static final Attraction summer_toboggan
    • train

      public static final Attraction train
    • tropic

      public static final Attraction tropic
    • water_slide

      public static final Attraction water_slide
    • boat_ride

      public static final Attraction boat_ride
  • Method Details

    • values

      public static Attraction[] 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 Attraction 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 (always null for this class).
      Specified by:
      wayType in interface AmenityOrWay
      Returns:
      null
    • 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 Attraction value(String name)
      Get the enum value associated with the string name specified.
      Parameters:
      name - String to convert into an Enum
      Returns:
      Aeroway for the string name, or null if no match