Package uk.org.siri.siri21
Enum FareClassEnumeration
- java.lang.Object
-
- java.lang.Enum<FareClassEnumeration>
-
- uk.org.siri.siri21.FareClassEnumeration
-
- All Implemented Interfaces:
Serializable,Comparable<FareClassEnumeration>
public enum FareClassEnumeration extends Enum<FareClassEnumeration>
Java class for FareClassEnumeration.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="FareClassEnumeration"> <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"> <enumeration value="unknown"/> <enumeration value="firstClass"/> <enumeration value="secondClass "/> <enumeration value="thirdClass"/> <enumeration value="preferente"/> <enumeration value="premiumClass"/> <enumeration value="businessClass"/> <enumeration value="standardClass"/> <enumeration value="turista"/> <enumeration value="economyClass"/> <enumeration value="any"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANYBUSINESS_CLASSBusiness Class - pti23_10ECONOMY_CLASSpti23_9FIRST_CLASSpti23_6PREFERENTEPREMIUM_CLASSpti23_6_1SECOND_CLASSpti23_7STANDARD_CLASSStandard class Add pti23_7THIRD_CLASSpti23_8TURISTAUNKNOWNpti23_0
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FareClassEnumerationfromValue(String v)Stringvalue()static FareClassEnumerationvalueOf(String name)Returns the enum constant of this type with the specified name.static FareClassEnumeration[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final FareClassEnumeration UNKNOWN
pti23_0
-
FIRST_CLASS
public static final FareClassEnumeration FIRST_CLASS
pti23_6
-
SECOND_CLASS
public static final FareClassEnumeration SECOND_CLASS
pti23_7
-
THIRD_CLASS
public static final FareClassEnumeration THIRD_CLASS
pti23_8
-
PREFERENTE
public static final FareClassEnumeration PREFERENTE
-
PREMIUM_CLASS
public static final FareClassEnumeration PREMIUM_CLASS
pti23_6_1
-
BUSINESS_CLASS
public static final FareClassEnumeration BUSINESS_CLASS
Business Class - pti23_10
-
STANDARD_CLASS
public static final FareClassEnumeration STANDARD_CLASS
Standard class Add pti23_7
-
TURISTA
public static final FareClassEnumeration TURISTA
-
ECONOMY_CLASS
public static final FareClassEnumeration ECONOMY_CLASS
pti23_9
-
ANY
public static final FareClassEnumeration ANY
-
-
Method Detail
-
values
public static FareClassEnumeration[] 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 (FareClassEnumeration c : FareClassEnumeration.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FareClassEnumeration 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 FareClassEnumeration fromValue(String v)
-
-