Package uk.org.siri.siri21
Enum SeverityEnumeration
- java.lang.Object
-
- java.lang.Enum<SeverityEnumeration>
-
- uk.org.siri.siri21.SeverityEnumeration
-
- All Implemented Interfaces:
Serializable,Comparable<SeverityEnumeration>
public enum SeverityEnumeration extends Enum<SeverityEnumeration>
Java class for SeverityEnumeration.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="SeverityEnumeration"> <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"> <enumeration value="unknown"/> <enumeration value="verySlight"/> <enumeration value="slight"/> <enumeration value="normal"/> <enumeration value="severe"/> <enumeration value="verySevere"/> <enumeration value="noImpact"/> <enumeration value="undefined"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NO_IMPACTTPEG Pti26_6, no impactNORMALTPEG Pti26_3, normalSEVERETPEG Pti26_4, severeSLIGHTTPEG Pti26_2, slightUNDEFINEDTPEG Pti26_255, undefinedUNKNOWNTPEG Pti26_0, unknownVERY_SEVERETPEG Pti26_5, very severeVERY_SLIGHTTPEG Pti26_1, very slight
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SeverityEnumerationfromValue(String v)Stringvalue()static SeverityEnumerationvalueOf(String name)Returns the enum constant of this type with the specified name.static SeverityEnumeration[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final SeverityEnumeration UNKNOWN
TPEG Pti26_0, unknown
-
VERY_SLIGHT
public static final SeverityEnumeration VERY_SLIGHT
TPEG Pti26_1, very slight
-
SLIGHT
public static final SeverityEnumeration SLIGHT
TPEG Pti26_2, slight
-
NORMAL
public static final SeverityEnumeration NORMAL
TPEG Pti26_3, normal
-
SEVERE
public static final SeverityEnumeration SEVERE
TPEG Pti26_4, severe
-
VERY_SEVERE
public static final SeverityEnumeration VERY_SEVERE
TPEG Pti26_5, very severe
-
NO_IMPACT
public static final SeverityEnumeration NO_IMPACT
TPEG Pti26_6, no impact
-
UNDEFINED
public static final SeverityEnumeration UNDEFINED
TPEG Pti26_255, undefined
-
-
Method Detail
-
values
public static SeverityEnumeration[] 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 (SeverityEnumeration c : SeverityEnumeration.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SeverityEnumeration 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 SeverityEnumeration fromValue(String v)
-
-