Package uk.org.siri.siri21
Enum TrainElementTypeEnumeration
- java.lang.Object
-
- java.lang.Enum<TrainElementTypeEnumeration>
-
- uk.org.siri.siri21.TrainElementTypeEnumeration
-
- All Implemented Interfaces:
Serializable,Comparable<TrainElementTypeEnumeration>
public enum TrainElementTypeEnumeration extends Enum<TrainElementTypeEnumeration>
Java class for TrainElementTypeEnumeration.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="TrainElementTypeEnumeration"> <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"> <enumeration value="buffetCar"/> <enumeration value="carriage"/> <enumeration value="engine"/> <enumeration value="carTransporter"/> <enumeration value="sleeperCarriage"/> <enumeration value="luggageVan"/> <enumeration value="restaurantCarriage"/> <enumeration value="other"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BUFFET_CARCAR_TRANSPORTERCARRIAGEENGINELUGGAGE_VANOTHERRESTAURANT_CARRIAGESLEEPER_CARRIAGE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TrainElementTypeEnumerationfromValue(String v)Stringvalue()static TrainElementTypeEnumerationvalueOf(String name)Returns the enum constant of this type with the specified name.static TrainElementTypeEnumeration[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BUFFET_CAR
public static final TrainElementTypeEnumeration BUFFET_CAR
-
CARRIAGE
public static final TrainElementTypeEnumeration CARRIAGE
-
ENGINE
public static final TrainElementTypeEnumeration ENGINE
-
CAR_TRANSPORTER
public static final TrainElementTypeEnumeration CAR_TRANSPORTER
-
SLEEPER_CARRIAGE
public static final TrainElementTypeEnumeration SLEEPER_CARRIAGE
-
LUGGAGE_VAN
public static final TrainElementTypeEnumeration LUGGAGE_VAN
-
RESTAURANT_CARRIAGE
public static final TrainElementTypeEnumeration RESTAURANT_CARRIAGE
-
OTHER
public static final TrainElementTypeEnumeration OTHER
-
-
Method Detail
-
values
public static TrainElementTypeEnumeration[] 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 (TrainElementTypeEnumeration c : TrainElementTypeEnumeration.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TrainElementTypeEnumeration 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 TrainElementTypeEnumeration fromValue(String v)
-
-