|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Natural>
org.ka2ddo.yaac.osm.Natural
public enum Natural
This enums defines the supported types of natural structures defined by OSM. See the definition of natural on the OpenStreetMap wiki.
Enum Constant Summary | |
---|---|
bay
|
|
beach
|
|
cave_entrance
|
|
cliff
|
|
coastline
|
|
fell
|
|
glacier
|
|
grassland
|
|
heath
|
|
mud
|
|
peak
|
|
sand
|
|
scree
|
|
scrub
|
|
spring
|
|
stone
|
|
tree
|
|
user_defined
|
|
volcano
|
|
water
|
|
wetland
|
|
wood
|
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 Natural |
value(java.lang.String name)
Get the enum value associated with the string name specified. |
static Natural |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Natural[] |
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 Natural user_defined
public static final Natural cliff
public static final Natural coastline
public static final Natural glacier
public static final Natural volcano
public static final Natural water
public static final Natural wetland
public static final Natural bay
public static final Natural beach
public static final Natural cave_entrance
public static final Natural fell
public static final Natural grassland
public static final Natural heath
public static final Natural mud
public static final Natural peak
public static final Natural sand
public static final Natural scree
public static final Natural scrub
public static final Natural spring
public static final Natural stone
public static final Natural tree
public static final Natural wood
Method Detail |
---|
public static Natural[] values()
for (Natural c : Natural.values()) System.out.println(c);
public static Natural 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 boolean isArea()
isArea
in interface MaybeArea
public static Natural value(java.lang.String name)
name
- String to convert into an Enum
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |