Package uk.org.siri.siri21
Enum PredictionInaccurateReasonEnumeration
- java.lang.Object
-
- java.lang.Enum<PredictionInaccurateReasonEnumeration>
-
- uk.org.siri.siri21.PredictionInaccurateReasonEnumeration
-
- All Implemented Interfaces:
Serializable,Comparable<PredictionInaccurateReasonEnumeration>
public enum PredictionInaccurateReasonEnumeration extends Enum<PredictionInaccurateReasonEnumeration>
Java class for PredictionInaccurateReasonEnumeration.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="PredictionInaccurateReasonEnumeration"> <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"> <enumeration value="vehicleInTrafficJam"/> <enumeration value="technicalProblem"/> <enumeration value="dispatchAction"/> <enumeration value="missingUpdate"/> <enumeration value="unknown"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISPATCH_ACTIONPrediction is inaccurate because of a despatching alteration.MISSING_UPDATEPrediction is inaccurate because communication errors have prevented any updates.TECHNICAL_PROBLEMPrediction is inaccurate because of technical problems.UNKNOWNPrediction is inaccurate but the reason for an inaccurate prediction is unknown.VEHICLE_IN_TRAFFIC_JAMPrediction is inaccurate because of a traffic jam.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PredictionInaccurateReasonEnumerationfromValue(String v)Stringvalue()static PredictionInaccurateReasonEnumerationvalueOf(String name)Returns the enum constant of this type with the specified name.static PredictionInaccurateReasonEnumeration[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VEHICLE_IN_TRAFFIC_JAM
public static final PredictionInaccurateReasonEnumeration VEHICLE_IN_TRAFFIC_JAM
Prediction is inaccurate because of a traffic jam.
-
TECHNICAL_PROBLEM
public static final PredictionInaccurateReasonEnumeration TECHNICAL_PROBLEM
Prediction is inaccurate because of technical problems.
-
DISPATCH_ACTION
public static final PredictionInaccurateReasonEnumeration DISPATCH_ACTION
Prediction is inaccurate because of a despatching alteration.
-
MISSING_UPDATE
public static final PredictionInaccurateReasonEnumeration MISSING_UPDATE
Prediction is inaccurate because communication errors have prevented any updates.
-
UNKNOWN
public static final PredictionInaccurateReasonEnumeration UNKNOWN
Prediction is inaccurate but the reason for an inaccurate prediction is unknown.
-
-
Method Detail
-
values
public static PredictionInaccurateReasonEnumeration[] 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 (PredictionInaccurateReasonEnumeration c : PredictionInaccurateReasonEnumeration.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PredictionInaccurateReasonEnumeration 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 PredictionInaccurateReasonEnumeration fromValue(String v)
-
-