Package uk.org.siri.siri21
Enum ServiceExceptionEnumeration
- java.lang.Object
-
- java.lang.Enum<ServiceExceptionEnumeration>
-
- uk.org.siri.siri21.ServiceExceptionEnumeration
-
- All Implemented Interfaces:
Serializable,Comparable<ServiceExceptionEnumeration>
public enum ServiceExceptionEnumeration extends Enum<ServiceExceptionEnumeration>
Java class for ServiceExceptionEnumeration.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="ServiceExceptionEnumeration"> <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"> <enumeration value="beforeFirstJourney"/> <enumeration value="afterLastJourney"/> <enumeration value="noServiceToday"/> <enumeration value="transportTemporarilySuspended"/> <enumeration value="transportLongtermSuspended"/> <enumeration value="transportSeverlyDisrupted"/> <enumeration value="realtimeDataNotAvailable"/> <enumeration value="realtimeDataAvailable"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AFTER_LAST_JOURNEYNo transport services returned because currently after first journey of day.BEFORE_FIRST_JOURNEYNo transport services returned because currently before first journey of day.NO_SERVICE_TODAYNo transport services returned because no services today.REALTIME_DATA_AVAILABLEREALTIME_DATA_NOT_AVAILABLENo transport services returned because real-time services not available.TRANSPORT_LONGTERM_SUSPENDEDNo transport services returned because prolonged suspension of services.TRANSPORT_SEVERLY_DISRUPTEDTransport services returned subject to severe disruptions.TRANSPORT_TEMPORARILY_SUSPENDEDNo transport services returned because services currently suspended.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceExceptionEnumerationfromValue(String v)Stringvalue()static ServiceExceptionEnumerationvalueOf(String name)Returns the enum constant of this type with the specified name.static ServiceExceptionEnumeration[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BEFORE_FIRST_JOURNEY
public static final ServiceExceptionEnumeration BEFORE_FIRST_JOURNEY
No transport services returned because currently before first journey of day.
-
AFTER_LAST_JOURNEY
public static final ServiceExceptionEnumeration AFTER_LAST_JOURNEY
No transport services returned because currently after first journey of day.
-
NO_SERVICE_TODAY
public static final ServiceExceptionEnumeration NO_SERVICE_TODAY
No transport services returned because no services today.
-
TRANSPORT_TEMPORARILY_SUSPENDED
public static final ServiceExceptionEnumeration TRANSPORT_TEMPORARILY_SUSPENDED
No transport services returned because services currently suspended.
-
TRANSPORT_LONGTERM_SUSPENDED
public static final ServiceExceptionEnumeration TRANSPORT_LONGTERM_SUSPENDED
No transport services returned because prolonged suspension of services.
-
TRANSPORT_SEVERLY_DISRUPTED
public static final ServiceExceptionEnumeration TRANSPORT_SEVERLY_DISRUPTED
Transport services returned subject to severe disruptions.
-
REALTIME_DATA_NOT_AVAILABLE
public static final ServiceExceptionEnumeration REALTIME_DATA_NOT_AVAILABLE
No transport services returned because real-time services not available.
-
REALTIME_DATA_AVAILABLE
public static final ServiceExceptionEnumeration REALTIME_DATA_AVAILABLE
-
-
Method Detail
-
values
public static ServiceExceptionEnumeration[] 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 (ServiceExceptionEnumeration c : ServiceExceptionEnumeration.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServiceExceptionEnumeration 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 ServiceExceptionEnumeration fromValue(String v)
-
-