|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Leisure>
org.ka2ddo.yaac.osm.Leisure
public enum Leisure
This enum defines the commonly-used values of the leisure="*" attribute of OSM. See the definition of leisure on the OpenStreetMap wiki.
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 |
---|
public static final Leisure user_defined
public static final Leisure dog_park
public static final Leisure sports_centre
public static final Leisure golf_course
public static final Leisure stadium
public static final Leisure track
public static final Leisure pitch
public static final Leisure water_park
public static final Leisure marina
public static final Leisure slipway
public static final Leisure fishing
public static final Leisure nature_reserve
public static final Leisure park
public static final Leisure playground
public static final Leisure garden
public static final Leisure common
public static final Leisure ice_rink
public static final Leisure miniature_golf
public static final Leisure dance
public static final Leisure swimming_pool
Method Detail |
---|
public static Leisure[] values()
for (Leisure c : Leisure.values()) System.out.println(c);
public static Leisure valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic WayType wayType()
wayType
in interface AmenityOrWay
public AmenityType getAmenityType()
getAmenityType
in interface AmenityOrWay
public static Leisure value(java.lang.String name)
name
- String to convert into an Enum
public boolean isArea()
isArea
in interface MaybeArea
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |