Package uk.org.siri.siri21
Enum TicketRestrictionEnumeration
- java.lang.Object
-
- java.lang.Enum<TicketRestrictionEnumeration>
-
- uk.org.siri.siri21.TicketRestrictionEnumeration
-
- All Implemented Interfaces:
Serializable,Comparable<TicketRestrictionEnumeration>
public enum TicketRestrictionEnumeration extends Enum<TicketRestrictionEnumeration>
Java class for TicketRestrictionEnumeration.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="TicketRestrictionEnumeration"> <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"> <enumeration value="unknown"/> <enumeration value="allTicketClassesValid"/> <enumeration value="fullFareOnly"/> <enumeration value="certainTicketsOnly"/> <enumeration value="ticketWithReservation"/> <enumeration value="specialFare"/> <enumeration value="onlyTicketsOfSpecifiedOperator"/> <enumeration value="noRestrictions"/> <enumeration value="noOffPeakTickets"/> <enumeration value="noWeekendReturnTickets"/> <enumeration value="noReducedFareTickets"/> <enumeration value="unknownTicketRestriction"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL_TICKET_CLASSES_VALIDTPEG Pti25_1, all ticket classes validCERTAIN_TICKETS_ONLYTPEG Pti25_3, certain tickets onlyFULL_FARE_ONLYTPEG Pti25_2, full fare onlyNO_OFF_PEAK_TICKETSTPEG Pti25_8, no off-peak ticketsNO_REDUCED_FARE_TICKETSTPEG Pti25_10, no reduced fare ticketsNO_RESTRICTIONSTPEG Pti25_7, no restrictionsNO_WEEKEND_RETURN_TICKETSTPEG Pti25_9, no weekend return ticketsONLY_TICKETS_OF_SPECIFIED_OPERATORTPEG Pti25_6, only tickets of specified operatorSPECIAL_FARETPEG Pti25_5, special fareTICKET_WITH_RESERVATIONTPEG Pti25_4, ticket with reservationUNKNOWNTPEG Pti25_0, unknownUNKNOWN_TICKET_RESTRICTIONTPEG Pti25_255, unknown ticket restriction
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TicketRestrictionEnumerationfromValue(String v)Stringvalue()static TicketRestrictionEnumerationvalueOf(String name)Returns the enum constant of this type with the specified name.static TicketRestrictionEnumeration[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final TicketRestrictionEnumeration UNKNOWN
TPEG Pti25_0, unknown
-
ALL_TICKET_CLASSES_VALID
public static final TicketRestrictionEnumeration ALL_TICKET_CLASSES_VALID
TPEG Pti25_1, all ticket classes valid
-
FULL_FARE_ONLY
public static final TicketRestrictionEnumeration FULL_FARE_ONLY
TPEG Pti25_2, full fare only
-
CERTAIN_TICKETS_ONLY
public static final TicketRestrictionEnumeration CERTAIN_TICKETS_ONLY
TPEG Pti25_3, certain tickets only
-
TICKET_WITH_RESERVATION
public static final TicketRestrictionEnumeration TICKET_WITH_RESERVATION
TPEG Pti25_4, ticket with reservation
-
SPECIAL_FARE
public static final TicketRestrictionEnumeration SPECIAL_FARE
TPEG Pti25_5, special fare
-
ONLY_TICKETS_OF_SPECIFIED_OPERATOR
public static final TicketRestrictionEnumeration ONLY_TICKETS_OF_SPECIFIED_OPERATOR
TPEG Pti25_6, only tickets of specified operator
-
NO_RESTRICTIONS
public static final TicketRestrictionEnumeration NO_RESTRICTIONS
TPEG Pti25_7, no restrictions
-
NO_OFF_PEAK_TICKETS
public static final TicketRestrictionEnumeration NO_OFF_PEAK_TICKETS
TPEG Pti25_8, no off-peak tickets
-
NO_WEEKEND_RETURN_TICKETS
public static final TicketRestrictionEnumeration NO_WEEKEND_RETURN_TICKETS
TPEG Pti25_9, no weekend return tickets
-
NO_REDUCED_FARE_TICKETS
public static final TicketRestrictionEnumeration NO_REDUCED_FARE_TICKETS
TPEG Pti25_10, no reduced fare tickets
-
UNKNOWN_TICKET_RESTRICTION
public static final TicketRestrictionEnumeration UNKNOWN_TICKET_RESTRICTION
TPEG Pti25_255, unknown ticket restriction
-
-
Method Detail
-
values
public static TicketRestrictionEnumeration[] 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 (TicketRestrictionEnumeration c : TicketRestrictionEnumeration.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TicketRestrictionEnumeration 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 TicketRestrictionEnumeration fromValue(String v)
-
-