Package uk.org.siri.siri21
Enum ProgressRateEnumeration
- java.lang.Object
-
- java.lang.Enum<ProgressRateEnumeration>
-
- uk.org.siri.siri21.ProgressRateEnumeration
-
- All Implemented Interfaces:
Serializable,Comparable<ProgressRateEnumeration>
public enum ProgressRateEnumeration extends Enum<ProgressRateEnumeration>
Java class for ProgressRateEnumeration.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="ProgressRateEnumeration"> <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"> <enumeration value="noProgress"/> <enumeration value="slowProgress"/> <enumeration value="normalProgress"/> <enumeration value="fastProgress"/> <enumeration value="unknown"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAST_PROGRESSVehicle is proceeding faster than normal.NO_PROGRESSVehicle is stationary.NORMAL_PROGRESSVehicle is proceeding at a normal rate.SLOW_PROGRESSVehicle is proceeding slower than normal.UNKNOWNThere is no data.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProgressRateEnumerationfromValue(String v)Stringvalue()static ProgressRateEnumerationvalueOf(String name)Returns the enum constant of this type with the specified name.static ProgressRateEnumeration[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_PROGRESS
public static final ProgressRateEnumeration NO_PROGRESS
Vehicle is stationary.
-
SLOW_PROGRESS
public static final ProgressRateEnumeration SLOW_PROGRESS
Vehicle is proceeding slower than normal.
-
NORMAL_PROGRESS
public static final ProgressRateEnumeration NORMAL_PROGRESS
Vehicle is proceeding at a normal rate.
-
FAST_PROGRESS
public static final ProgressRateEnumeration FAST_PROGRESS
Vehicle is proceeding faster than normal.
-
UNKNOWN
public static final ProgressRateEnumeration UNKNOWN
There is no data.
-
-
Method Detail
-
values
public static ProgressRateEnumeration[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ProgressRateEnumeration c : ProgressRateEnumeration.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProgressRateEnumeration valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
value
public String value()
-
fromValue
public static ProgressRateEnumeration fromValue(String v)
-
-