Enum Class Emergency

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

public enum Emergency extends Enum<Emergency> implements 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
  • Enum Constant Details

    • ambulance_station

      public static final Emergency ambulance_station
    • defibrillator

      public static final Emergency defibrillator
    • landing_site

      public static final Emergency landing_site
    • air_rescue_service

      public static final Emergency air_rescue_service
    • disaster_help_point

      public static final Emergency disaster_help_point
    • disaster_response

      public static final Emergency disaster_response
    • emergency_ward_entrance

      public static final Emergency emergency_ward_entrance
    • dry_riser_inlet

      public static final Emergency dry_riser_inlet
    • fire_alarm_box

      public static final Emergency fire_alarm_box
    • fire_extinguisher

      public static final Emergency fire_extinguisher
    • fire_flapper

      public static final Emergency fire_flapper
    • fire_lookout

      public static final Emergency fire_lookout
    • fire_hose

      public static final Emergency fire_hose
    • fire_service_inlet

      public static final Emergency fire_service_inlet
    • fire_hydrant

      public static final Emergency fire_hydrant
    • water_tank

      public static final Emergency water_tank
    • fire_water_pond

      public static final Emergency fire_water_pond
    • suction_point

      public static final Emergency suction_point
    • first_aid_kit

      public static final Emergency first_aid_kit
    • lifeguard

      public static final Emergency lifeguard
    • lifeguard_base

      public static final Emergency lifeguard_base
    • lifeguard_tower

      public static final Emergency lifeguard_tower
    • lifeguard_platform

      public static final Emergency lifeguard_platform
    • life_ring

      public static final Emergency life_ring
    • mountain_rescue

      public static final Emergency mountain_rescue
    • assembly_point

      public static final Emergency assembly_point
    • access_point

      public static final Emergency access_point
    • phone

      public static final Emergency phone
    • rescue_box

      public static final Emergency rescue_box
    • rescue_station

      public static final Emergency rescue_station
    • ses_station

      public static final Emergency ses_station
    • siren

      public static final Emergency siren
    • control_centre

      public static final Emergency control_centre
    • psap

      public static final Emergency psap
  • Method Details

    • values

      public static Emergency[] 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 Emergency 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 Emergency value(String name)
      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