Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD

## org.ka2ddo.yaac.osm
Enum Leisure

    java.lang.Object
      java.lang.Enum<Leisure>
          org.ka2ddo.yaac.osm.Leisure

All Implemented Interfaces:
  java.io.Serializable, java.lang.Comparable<Leisure>, AmenityOrWay, MaybeArea

    public enum Leisure

extends java.lang.Enum<Leisure>
implements MaybeArea, AmenityOrWay

This enum defines the commonly-used values of the leisure="*" attribute of OSM. See the definition of leisure on the OpenStreetMap wiki.

Enum Constant Summary
`common`
`dance`
`dog_park`
`fishing`
`garden`
`golf_course`
`ice_rink`
`marina`
`miniature_golf`
`nature_reserve`
`park`
`pitch`
`playground`
`slipway`
`sports_centre`
`stadium`
`swimming_pool`
`track`
`user_defined`
`water_park`

Method Summary
`AmenityType` | `getAmenityType()` Get amenity type associated with this enumeration; only for types that are amenities.
`boolean` | `isArea()` Indicates whether this enum type implies an area.
`static Leisure` | `value(java.lang.String name)` Get the enum value associated with the string name specified.
`static Leisure` | `valueOf(java.lang.String name)` Returns the enum constant of this type with the specified name.
`static Leisure[]` | `values()` Returns an array containing the constants of this enum type, in the order they are declared.
`WayType` | `wayType()` Report the WayType for rendering this type of Way.

Methods inherited from class java.lang.Enum
`clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

Methods inherited from class java.lang.Object
`getClass, notify, notifyAll, wait, wait, wait`

Enum Constant Detail

### user_defined

    public static final Leisure user_defined

### dog_park

    public static final Leisure dog_park

### sports_centre

    public static final Leisure sports_centre

### golf_course

    public static final Leisure golf_course

### stadium

    public static final Leisure stadium

### track

    public static final Leisure track

### pitch

    public static final Leisure pitch

### water_park

    public static final Leisure water_park

### marina

    public static final Leisure marina

### slipway

    public static final Leisure slipway

### fishing

    public static final Leisure fishing

### nature_reserve

    public static final Leisure nature_reserve

### park

    public static final Leisure park

### playground

    public static final Leisure playground

### garden

    public static final Leisure garden

### common

    public static final Leisure common

### ice_rink

    public static final Leisure ice_rink

### miniature_golf

    public static final Leisure miniature_golf

### dance

    public static final Leisure dance

### swimming_pool

    public static final Leisure swimming_pool

Method Detail

### values

    public static Leisure[] values()

  Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:

      for (Leisure c : Leisure.values())
          System.out.println(c);

  Returns:
    an array containing the constants of this enum type, in the order they are declared

### valueOf

    public static Leisure valueOf(java.lang.String name)

  Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
    `java.lang.IllegalArgumentException` - if this enum type has no constant with the specified name
    `java.lang.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(java.lang.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

### isArea

    public boolean isArea()

  Indicates whether this enum type implies an area.

  Specified by:
    `isArea` in interface `MaybeArea`
  Returns:
    boolean true if Ways with this attribute value are assumed to be areas

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD