public enum Waterway extends java.lang.Enum<Waterway> implements AmenityOrWay, EnumMayHaveFlags
Enum Constant and Description |
---|
boatyard |
canal |
canoe_pass |
check_dam |
dam |
debris_screen |
ditch |
dock |
drain |
fairway |
fish_pass |
floodgate |
fuel |
lock_gate |
rapids |
river |
riverbank |
security_lock |
sluice_gate |
stream |
turning_point |
user_defined |
water_point |
waterfall |
weir |
Modifier and Type | Method and Description |
---|---|
AmenityType |
getAmenityType()
Get amenity type associated with this enumeration; only for types that are amenities.
|
short |
getFlagMask()
Indicates any flag bits implied by this enum type.
|
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.
|
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
public static final Waterway weir
public static final Waterway boatyard
public static final Waterway dock
public static final Waterway fairway
public static final Waterway fish_pass
public static final Waterway canoe_pass
public static final Waterway lock_gate
public static final Waterway sluice_gate
public static final Waterway floodgate
public static final Waterway debris_screen
public static final Waterway security_lock
public static final Waterway check_dam
public static final Waterway turning_point
public static final Waterway water_point
public static final Waterway fuel
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 namejava.lang.NullPointerException
- if the argument is nullpublic WayType wayType()
wayType
in interface AmenityOrWay
public AmenityType getAmenityType()
getAmenityType
in interface AmenityOrWay
public static Waterway value(java.lang.String name)
name
- String to convert into an Enumpublic short getFlagMask()
getFlagMask
in interface EnumMayHaveFlags