Package uk.org.siri.siri21
Enum AdviceTypeEnumeration
- java.lang.Object
-
- java.lang.Enum<AdviceTypeEnumeration>
-
- uk.org.siri.siri21.AdviceTypeEnumeration
-
- All Implemented Interfaces:
Serializable,Comparable<AdviceTypeEnumeration>
public enum AdviceTypeEnumeration extends Enum<AdviceTypeEnumeration>
Java class for AdviceTypeEnumeration.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="AdviceTypeEnumeration"> <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"> <enumeration value="unknown"/> <enumeration value="useReplacementBus"/> <enumeration value="useReplacementTrain"/> <enumeration value="useAlternativeRoute"/> <enumeration value="goOnFoot"/> <enumeration value="dangerLeaveStation"/> <enumeration value="noMeansOfTravel"/> <enumeration value="useDifferentStops"/> <enumeration value="useAlternativeStop"/> <enumeration value="dangerDoNotLeaveVehicle"/> <enumeration value="takeAdviceAnnouncements"/> <enumeration value="takeAdvicePersonnel"/> <enumeration value="obeyAdvicePolice"/> <enumeration value="useOtherPT"/> <enumeration value="useInterchange"/> <enumeration value="noAdvice"/> <enumeration value="undefined"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DANGER_DO_NOT_LEAVE_VEHICLETPEG Pts39_9, do not leave vehicle! Danger!DANGER_LEAVE_STATIONTPEG Pts39_5, please leave the station! Danger!GO_ON_FOOTTPEG Pts39_4, go on footNO_ADVICEno adviceNO_MEANS_OF_TRAVELTPEG Pts39_6, no means of travelOBEY_ADVICE_POLICETPEG Pts39_12, obey advice from policeTAKE_ADVICE_ANNOUNCEMENTSTPEG Pts39_10, take advice from announcementsTAKE_ADVICE_PERSONNELTPEG Pts39_11, take advice from personnelUNDEFINEDTPEG Pts39_255, undefined adviceUNKNOWNTPEG Pts39_0, unknownUSE_ALTERNATIVE_ROUTETPEG Pts39_3, use the alternative routeUSE_ALTERNATIVE_STOPTPEG Pts39_8, use alternative stopUSE_DIFFERENT_STOPSTPEG Pts39_7, use different stopsUSE_INTERCHANGEuse interchangeUSE_OTHER_PTuse other PT servicesUSE_REPLACEMENT_BUSTPEG Pts39_1, use replacement busUSE_REPLACEMENT_TRAINTPEG Pts39_2, use replacement train
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AdviceTypeEnumerationfromValue(String v)Stringvalue()static AdviceTypeEnumerationvalueOf(String name)Returns the enum constant of this type with the specified name.static AdviceTypeEnumeration[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final AdviceTypeEnumeration UNKNOWN
TPEG Pts39_0, unknown
-
USE_REPLACEMENT_BUS
public static final AdviceTypeEnumeration USE_REPLACEMENT_BUS
TPEG Pts39_1, use replacement bus
-
USE_REPLACEMENT_TRAIN
public static final AdviceTypeEnumeration USE_REPLACEMENT_TRAIN
TPEG Pts39_2, use replacement train
-
USE_ALTERNATIVE_ROUTE
public static final AdviceTypeEnumeration USE_ALTERNATIVE_ROUTE
TPEG Pts39_3, use the alternative route
-
GO_ON_FOOT
public static final AdviceTypeEnumeration GO_ON_FOOT
TPEG Pts39_4, go on foot
-
DANGER_LEAVE_STATION
public static final AdviceTypeEnumeration DANGER_LEAVE_STATION
TPEG Pts39_5, please leave the station! Danger!
-
NO_MEANS_OF_TRAVEL
public static final AdviceTypeEnumeration NO_MEANS_OF_TRAVEL
TPEG Pts39_6, no means of travel
-
USE_DIFFERENT_STOPS
public static final AdviceTypeEnumeration USE_DIFFERENT_STOPS
TPEG Pts39_7, use different stops
-
USE_ALTERNATIVE_STOP
public static final AdviceTypeEnumeration USE_ALTERNATIVE_STOP
TPEG Pts39_8, use alternative stop
-
DANGER_DO_NOT_LEAVE_VEHICLE
public static final AdviceTypeEnumeration DANGER_DO_NOT_LEAVE_VEHICLE
TPEG Pts39_9, do not leave vehicle! Danger!
-
TAKE_ADVICE_ANNOUNCEMENTS
public static final AdviceTypeEnumeration TAKE_ADVICE_ANNOUNCEMENTS
TPEG Pts39_10, take advice from announcements
-
TAKE_ADVICE_PERSONNEL
public static final AdviceTypeEnumeration TAKE_ADVICE_PERSONNEL
TPEG Pts39_11, take advice from personnel
-
OBEY_ADVICE_POLICE
public static final AdviceTypeEnumeration OBEY_ADVICE_POLICE
TPEG Pts39_12, obey advice from police
-
USE_OTHER_PT
public static final AdviceTypeEnumeration USE_OTHER_PT
use other PT services
-
USE_INTERCHANGE
public static final AdviceTypeEnumeration USE_INTERCHANGE
use interchange
-
NO_ADVICE
public static final AdviceTypeEnumeration NO_ADVICE
no advice
-
UNDEFINED
public static final AdviceTypeEnumeration UNDEFINED
TPEG Pts39_255, undefined advice
-
-
Method Detail
-
values
public static AdviceTypeEnumeration[] 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 (AdviceTypeEnumeration c : AdviceTypeEnumeration.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AdviceTypeEnumeration 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 AdviceTypeEnumeration fromValue(String v)
-
-