public enum RoadworksDurationEnum extends java.lang.Enum<RoadworksDurationEnum>
Java-Klasse für RoadworksDurationEnum.
Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.
<simpleType name="RoadworksDurationEnum"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="longTerm"/> <enumeration value="shortTerm"/> </restriction> </simpleType>
Enum Constant and Description |
---|
LONG_TERM
The roadworks are expected to last for a long term ( duration > 6 months)
|
SHORT_TERM
The roadworks are expected to last for a short term ( duration < = 1 month)
|
Modifier and Type | Method and Description |
---|---|
static RoadworksDurationEnum |
fromValue(java.lang.String v) |
java.lang.String |
value() |
static RoadworksDurationEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RoadworksDurationEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RoadworksDurationEnum LONG_TERM
public static final RoadworksDurationEnum SHORT_TERM
public static RoadworksDurationEnum[] values()
for (RoadworksDurationEnum c : RoadworksDurationEnum.values()) System.out.println(c);
public static RoadworksDurationEnum 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 java.lang.String value()
public static RoadworksDurationEnum fromValue(java.lang.String v)