Package org.ka2ddo.yaac.osm
Enum Class Emergency
- All Implemented Interfaces:
Serializable
,Comparable<Emergency>
,Constable
,AmenityOrWay
This enum defines the commonly-used values of the emergency="*" attribute of OSM.
See the definition of emergency
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 ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionGet amenity type associated with this enumeration; only for types that are amenities.static Emergency
Get the enum value associated with the string name specified.static Emergency
Returns the enum constant of this class with the specified name.static Emergency[]
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.
-
Enum Constant Details
-
ambulance_station
-
defibrillator
-
landing_site
-
air_rescue_service
-
disaster_help_point
-
disaster_response
-
emergency_ward_entrance
-
dry_riser_inlet
-
fire_alarm_box
-
fire_extinguisher
-
fire_flapper
-
fire_lookout
-
fire_hose
-
fire_service_inlet
-
fire_hydrant
-
water_tank
-
fire_water_pond
-
suction_point
-
first_aid_kit
-
lifeguard
-
lifeguard_base
-
lifeguard_tower
-
lifeguard_platform
-
life_ring
-
mountain_rescue
-
assembly_point
-
access_point
-
phone
-
rescue_box
-
rescue_station
-
ses_station
-
siren
-
control_centre
-
psap
-
-
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.- Specified by:
wayType
in interfaceAmenityOrWay
- Returns:
- WayType
-
getAmenityType
Get amenity type associated with this enumeration; only for types that are amenities.- Specified by:
getAmenityType
in interfaceAmenityOrWay
- Returns:
- AmenityType for this 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:
- Emergency for the string name, or null if no match
-