![JAR search and dependency download from the Maven repository](/logo.png)
uk.org.siri.siri21.TicketRestrictionEnumeration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of siri-java-model Show documentation
Show all versions of siri-java-model Show documentation
Java objects based on the public SIRI XSDs
The newest version!
//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.2
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2025.01.07 at 02:19:41 PM UTC
//
package uk.org.siri.siri21;
import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlEnumValue;
import jakarta.xml.bind.annotation.XmlType;
/**
* 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>
*
*
*/
@XmlType(name = "TicketRestrictionEnumeration")
@XmlEnum
public enum TicketRestrictionEnumeration {
/**
* TPEG Pti25_0, unknown
*
*/
@XmlEnumValue("unknown")
UNKNOWN("unknown"),
/**
* TPEG Pti25_1, all ticket classes valid
*
*/
@XmlEnumValue("allTicketClassesValid")
ALL_TICKET_CLASSES_VALID("allTicketClassesValid"),
/**
* TPEG Pti25_2, full fare only
*
*/
@XmlEnumValue("fullFareOnly")
FULL_FARE_ONLY("fullFareOnly"),
/**
* TPEG Pti25_3, certain tickets only
*
*/
@XmlEnumValue("certainTicketsOnly")
CERTAIN_TICKETS_ONLY("certainTicketsOnly"),
/**
* TPEG Pti25_4, ticket with reservation
*
*/
@XmlEnumValue("ticketWithReservation")
TICKET_WITH_RESERVATION("ticketWithReservation"),
/**
* TPEG Pti25_5, special fare
*
*/
@XmlEnumValue("specialFare")
SPECIAL_FARE("specialFare"),
/**
* TPEG Pti25_6, only tickets of specified operator
*
*/
@XmlEnumValue("onlyTicketsOfSpecifiedOperator")
ONLY_TICKETS_OF_SPECIFIED_OPERATOR("onlyTicketsOfSpecifiedOperator"),
/**
* TPEG Pti25_7, no restrictions
*
*/
@XmlEnumValue("noRestrictions")
NO_RESTRICTIONS("noRestrictions"),
/**
* TPEG Pti25_8, no off-peak tickets
*
*/
@XmlEnumValue("noOffPeakTickets")
NO_OFF_PEAK_TICKETS("noOffPeakTickets"),
/**
* TPEG Pti25_9, no weekend return tickets
*
*/
@XmlEnumValue("noWeekendReturnTickets")
NO_WEEKEND_RETURN_TICKETS("noWeekendReturnTickets"),
/**
* TPEG Pti25_10, no reduced fare tickets
*
*/
@XmlEnumValue("noReducedFareTickets")
NO_REDUCED_FARE_TICKETS("noReducedFareTickets"),
/**
* TPEG Pti25_255, unknown ticket restriction
*
*/
@XmlEnumValue("unknownTicketRestriction")
UNKNOWN_TICKET_RESTRICTION("unknownTicketRestriction");
private final String value;
TicketRestrictionEnumeration(String v) {
value = v;
}
public String value() {
return value;
}
public static TicketRestrictionEnumeration fromValue(String v) {
for (TicketRestrictionEnumeration c: TicketRestrictionEnumeration.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy