|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Waterway>
org.ka2ddo.yaac.osm.Waterway
public enum Waterway
Supported types of the OSM waterway="*" attribute. See the definition of waterway on the OpenStreetMap wiki.
Enum Constant Summary | |
---|---|
canal
|
|
dam
|
|
ditch
|
|
drain
|
|
rapids
|
|
river
|
|
riverbank
|
|
stream
|
|
user_defined
|
|
waterfall
|
Method Summary | |
---|---|
AmenityType |
getAmenityType()
Get amenity type associated with this enumeration; only for types that are amenities. |
short |
getExtraFlags()
Extra flag bits that should be OR'd into the flags field of the Node or Way. |
static Waterway |
value(java.lang.String name)
Get the enum value associated with the string name specified. |
static Waterway |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Waterway[] |
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 Waterway user_defined
public static final Waterway stream
public static final Waterway river
public static final Waterway riverbank
public static final Waterway canal
public static final Waterway ditch
public static final Waterway drain
public static final Waterway rapids
public static final Waterway waterfall
public static final Waterway dam
Method Detail |
---|
public static Waterway[] values()
for (Waterway c : Waterway.values()) System.out.println(c);
public static Waterway 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 short getExtraFlags()
GenericTaggedNode.flags
public static Waterway 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 |