Package uk.org.siri.siri21
Enum TimetableTypeEnumeration
- java.lang.Object
-
- java.lang.Enum<TimetableTypeEnumeration>
-
- uk.org.siri.siri21.TimetableTypeEnumeration
-
- All Implemented Interfaces:
Serializable,Comparable<TimetableTypeEnumeration>
public enum TimetableTypeEnumeration extends Enum<TimetableTypeEnumeration>
Java class for TimetableTypeEnumeration.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="TimetableTypeEnumeration"> <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"> <enumeration value="unknown"/> <enumeration value="winter"/> <enumeration value="spring"/> <enumeration value="summer"/> <enumeration value="autumn"/> <enumeration value="special"/> <enumeration value="emergency"/> <enumeration value="undefinedTimetableType"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTUMNTPEG Pti33_4, autumnEMERGENCYTPEG Pti33_6, emergencySPECIALTPEG Pti33_5, specialSPRINGTPEG Pti33_2, springSUMMERTPEG Pti33_3, summerUNDEFINED_TIMETABLE_TYPETPEG Pti33_255, undefined timetable typeUNKNOWNTPEG Pti33_0, unknownWINTERTPEG Pti33_1, winter
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimetableTypeEnumerationfromValue(String v)Stringvalue()static TimetableTypeEnumerationvalueOf(String name)Returns the enum constant of this type with the specified name.static TimetableTypeEnumeration[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final TimetableTypeEnumeration UNKNOWN
TPEG Pti33_0, unknown
-
WINTER
public static final TimetableTypeEnumeration WINTER
TPEG Pti33_1, winter
-
SPRING
public static final TimetableTypeEnumeration SPRING
TPEG Pti33_2, spring
-
SUMMER
public static final TimetableTypeEnumeration SUMMER
TPEG Pti33_3, summer
-
AUTUMN
public static final TimetableTypeEnumeration AUTUMN
TPEG Pti33_4, autumn
-
SPECIAL
public static final TimetableTypeEnumeration SPECIAL
TPEG Pti33_5, special
-
EMERGENCY
public static final TimetableTypeEnumeration EMERGENCY
TPEG Pti33_6, emergency
-
UNDEFINED_TIMETABLE_TYPE
public static final TimetableTypeEnumeration UNDEFINED_TIMETABLE_TYPE
TPEG Pti33_255, undefined timetable type
-
-
Method Detail
-
values
public static TimetableTypeEnumeration[] 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 (TimetableTypeEnumeration c : TimetableTypeEnumeration.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimetableTypeEnumeration 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 TimetableTypeEnumeration fromValue(String v)
-
-