Enum Class Leisure

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

public enum Leisure extends Enum<Leisure> implements EnumMayHaveFlags, AmenityOrWay
This enum defines the commonly-used values of the leisure="*" attribute of OSM. See the definition of leisure on the OpenStreetMap wiki.
Author:
Andrew Pavlin, KA2DDO
  • Enum Constant Details

    • adult_gaming_centre

      public static final Leisure adult_gaming_centre
    • amusement_arcade

      public static final Leisure amusement_arcade
    • bandstand

      public static final Leisure bandstand
    • beach_resort

      public static final Leisure beach_resort
    • bird_hide

      public static final Leisure bird_hide
    • bleachers

      public static final Leisure bleachers
    • bowling_alley

      public static final Leisure bowling_alley
    • common

      public static final Leisure common
    • dance

      public static final Leisure dance
    • disc_golf_course

      public static final Leisure disc_golf_course
    • dog_park

      public static final Leisure dog_park
    • escape_game

      public static final Leisure escape_game
    • firepit

      public static final Leisure firepit
    • fishing

      public static final Leisure fishing
    • fitness_centre

      public static final Leisure fitness_centre
    • fitness_station

      public static final Leisure fitness_station
    • garden

      public static final Leisure garden
    • golf_course

      public static final Leisure golf_course
    • hackerspace

      public static final Leisure hackerspace
    • horse_riding

      public static final Leisure horse_riding
    • ice_rink

      public static final Leisure ice_rink
    • marina

      public static final Leisure marina
    • miniature_golf

      public static final Leisure miniature_golf
    • nature_reserve

      public static final Leisure nature_reserve
    • outdoor_seating

      public static final Leisure outdoor_seating
    • park

      public static final Leisure park
    • picnic_table

      public static final Leisure picnic_table
    • pitch

      public static final Leisure pitch
    • playground

      public static final Leisure playground
    • resort

      public static final Leisure resort
    • sauna

      public static final Leisure sauna
    • slipway

      public static final Leisure slipway
    • sports_centre

      public static final Leisure sports_centre
    • sports_hall

      public static final Leisure sports_hall
    • stadium

      public static final Leisure stadium
    • summer_camp

      public static final Leisure summer_camp
    • swimming_area

      public static final Leisure swimming_area
    • swimming_pool

      public static final Leisure swimming_pool
    • tanning_salon

      public static final Leisure tanning_salon
    • track

      public static final Leisure track
    • trampoline_park

      public static final Leisure trampoline_park
    • water_park

      public static final Leisure water_park
    • wildlife_hide

      public static final Leisure wildlife_hide
  • Method Details

    • values

      public static Leisure[] 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 Leisure 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, or null if this attribute does not override other attributes' choice of 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 Leisure value(String name)
      Get the enum value associated with the string name specified.
      Parameters:
      name - String to convert into an Enum
      Returns:
      Leisure for the string name, or null if no match
    • getFlagMask

      public short getFlagMask()
      Indicates any flag bits implied by this enum type.
      Specified by:
      getFlagMask in interface EnumMayHaveFlags
      Returns:
      bitmask of flags if this enum implies flags