Enum AlertCDirectionEnum
- java.lang.Object
-
- java.lang.Enum<AlertCDirectionEnum>
-
- eu.datex2.siri13.schema._1_0._1_0.AlertCDirectionEnum
-
- All Implemented Interfaces:
Serializable,Comparable<AlertCDirectionEnum>
public enum AlertCDirectionEnum extends Enum<AlertCDirectionEnum>
Java class for AlertCDirectionEnum.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="AlertCDirectionEnum"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="both"/> <enumeration value="negative"/> <enumeration value="positive"/> <enumeration value="unknown"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOTHIndicates that both directions of traffic flow are affected by the situation or relate to the traffic data.NEGATIVEThe direction of traffic flow concerned by a situation or traffic data.POSITIVEThe direction of traffic flow concerned by a situation or traffic data.UNKNOWNUnknown direction.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AlertCDirectionEnumfromValue(String v)Stringvalue()static AlertCDirectionEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static AlertCDirectionEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOTH
public static final AlertCDirectionEnum BOTH
Indicates that both directions of traffic flow are affected by the situation or relate to the traffic data.
-
NEGATIVE
public static final AlertCDirectionEnum NEGATIVE
The direction of traffic flow concerned by a situation or traffic data. In Alert C the negative direction corresponds to the negative offset direction within the RDS location table.
-
POSITIVE
public static final AlertCDirectionEnum POSITIVE
The direction of traffic flow concerned by a situation or traffic data. In Alert C the positive direction corresponds to the positive offset direction within the RDS location table.
-
UNKNOWN
public static final AlertCDirectionEnum UNKNOWN
Unknown direction.
-
-
Method Detail
-
values
public static AlertCDirectionEnum[] 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 (AlertCDirectionEnum c : AlertCDirectionEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AlertCDirectionEnum 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 AlertCDirectionEnum fromValue(String v)
-
-