Package uk.org.siri.siri21
Enum VehicleStatusEnumeration
- java.lang.Object
-
- java.lang.Enum<VehicleStatusEnumeration>
-
- uk.org.siri.siri21.VehicleStatusEnumeration
-
- All Implemented Interfaces:
Serializable,Comparable<VehicleStatusEnumeration>
public enum VehicleStatusEnumeration extends Enum<VehicleStatusEnumeration>
Java class for VehicleStatusEnumeration.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="VehicleStatusEnumeration"> <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"> <enumeration value="expected"/> <enumeration value="notExpected"/> <enumeration value="cancelled"/> <enumeration value="assigned"/> <enumeration value="signedOn"/> <enumeration value="atOrigin"/> <enumeration value="inProgress"/> <enumeration value="aborted"/> <enumeration value="offRoute"/> <enumeration value="completed"/> <enumeration value="assumedCompleted"/> <enumeration value="notRun"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABORTEDASSIGNEDASSUMED_COMPLETEDIt is assumed that the Service has completed.AT_ORIGINCANCELLEDCOMPLETEDIt has been detected that the Service was completed.EXPECTEDService is expected to be performed.IN_PROGRESSService has departed from first stop.NOT_EXPECTEDService is not expected to be run.NOT_RUNOFF_ROUTESIGNED_ON
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VehicleStatusEnumerationfromValue(String v)Stringvalue()static VehicleStatusEnumerationvalueOf(String name)Returns the enum constant of this type with the specified name.static VehicleStatusEnumeration[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXPECTED
public static final VehicleStatusEnumeration EXPECTED
Service is expected to be performed.
-
NOT_EXPECTED
public static final VehicleStatusEnumeration NOT_EXPECTED
Service is not expected to be run. For instance a flexible service that has not yet been preordered.
-
CANCELLED
public static final VehicleStatusEnumeration CANCELLED
-
ASSIGNED
public static final VehicleStatusEnumeration ASSIGNED
-
SIGNED_ON
public static final VehicleStatusEnumeration SIGNED_ON
-
AT_ORIGIN
public static final VehicleStatusEnumeration AT_ORIGIN
-
IN_PROGRESS
public static final VehicleStatusEnumeration IN_PROGRESS
Service has departed from first stop.
-
ABORTED
public static final VehicleStatusEnumeration ABORTED
-
OFF_ROUTE
public static final VehicleStatusEnumeration OFF_ROUTE
-
COMPLETED
public static final VehicleStatusEnumeration COMPLETED
It has been detected that the Service was completed.
-
ASSUMED_COMPLETED
public static final VehicleStatusEnumeration ASSUMED_COMPLETED
It is assumed that the Service has completed.
-
NOT_RUN
public static final VehicleStatusEnumeration NOT_RUN
-
-
Method Detail
-
values
public static VehicleStatusEnumeration[] 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 (VehicleStatusEnumeration c : VehicleStatusEnumeration.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VehicleStatusEnumeration 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 VehicleStatusEnumeration fromValue(String v)
-
-