Package org.ka2ddo.yaac.osm
Enum Class Attraction
- All Implemented Interfaces:
Serializable
,Comparable<Attraction>
,Constable
,AmenityOrWay
Supported types of the OSM attraction="*" attribute.
See the definition of attraction
on the OpenStreetMap wiki.
- Author:
- Andrew Pavlin, KA2DDO
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionOther types of Attractions not standardized in OpenStreetMap. -
Method Summary
Modifier and TypeMethodDescriptionGet amenity type associated with this aeroway; only for types that are amenities.static Attraction
Get the enum value associated with the string name specified.static Attraction
Returns the enum constant of this class with the specified name.static Attraction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.wayType()
Report the WayType for rendering this type of Way (always null for this class).
-
Enum Constant Details
-
user_defined
Other types of Attractions not standardized in OpenStreetMap. -
amusement_ride
-
animal
-
big_wheel
-
bumper_car
-
bungee_jumping
-
carousel
-
dark_ride
-
drop_tower
-
formal_garden
-
game_installation
-
kiddle_ride
-
log_flume
-
maze
-
pirate_ship
-
river_rafting
-
rock_art
-
roller_coaster
-
alpine_coaster
-
summer_toboggan
-
swing_carousel
-
train
-
tropic
-
water_slide
-
boat_ride
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
wayType
Report the WayType for rendering this type of Way (always null for this class).- Specified by:
wayType
in interfaceAmenityOrWay
- Returns:
- null
-
getAmenityType
Get amenity type associated with this aeroway; only for types that are amenities.- Specified by:
getAmenityType
in interfaceAmenityOrWay
- Returns:
- AmenityType for this aeroway type, or null if not an amenity
-
value
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
-