public enum Power extends java.lang.Enum<Power> implements AmenityOrWay
| Enum Constant and Description |
|---|
generator |
line |
minor_line |
plant |
station |
substation |
tower |
user_defined |
| Modifier and Type | Method and Description |
|---|---|
AmenityType |
getAmenityType()
Get amenity type associated with this enumeration; only for types that are amenities.
|
static Power |
value(java.lang.String name)
Get the enum value associated with the string name specified.
|
static Power |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Power[] |
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 Power user_defined
public static final Power line
public static final Power minor_line
public static final Power station
public static final Power substation
public static final Power generator
public static final Power tower
public static final Power plant
public static Power[] values()
for (Power c : Power.values()) System.out.println(c);
public static Power 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 AmenityOrWaypublic AmenityType getAmenityType()
getAmenityType in interface AmenityOrWaypublic static Power value(java.lang.String name)
name - String to convert into an Enum