Enum InvolvementRolesEnum
- java.lang.Object
-
- java.lang.Enum<InvolvementRolesEnum>
-
- eu.datex2.siri20.schema._2_0rc1._2_0.InvolvementRolesEnum
-
- All Implemented Interfaces:
Serializable,Comparable<InvolvementRolesEnum>
public enum InvolvementRolesEnum extends Enum<InvolvementRolesEnum>
Java class for InvolvementRolesEnum.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="InvolvementRolesEnum"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="cyclist"/> <enumeration value="pedestrian"/> <enumeration value="unknown"/> <enumeration value="vehicleDriver"/> <enumeration value="vehicleOccupant"/> <enumeration value="vehiclePassenger"/> <enumeration value="witness"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CYCLISTPEDESTRIANUNKNOWNVEHICLE_DRIVERVEHICLE_OCCUPANTVEHICLE_PASSENGERWITNESS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InvolvementRolesEnumfromValue(String v)Stringvalue()static InvolvementRolesEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static InvolvementRolesEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CYCLIST
public static final InvolvementRolesEnum CYCLIST
-
PEDESTRIAN
public static final InvolvementRolesEnum PEDESTRIAN
-
UNKNOWN
public static final InvolvementRolesEnum UNKNOWN
-
VEHICLE_DRIVER
public static final InvolvementRolesEnum VEHICLE_DRIVER
-
VEHICLE_OCCUPANT
public static final InvolvementRolesEnum VEHICLE_OCCUPANT
-
VEHICLE_PASSENGER
public static final InvolvementRolesEnum VEHICLE_PASSENGER
-
WITNESS
public static final InvolvementRolesEnum WITNESS
-
-
Method Detail
-
values
public static InvolvementRolesEnum[] 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 (InvolvementRolesEnum c : InvolvementRolesEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InvolvementRolesEnum 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 InvolvementRolesEnum fromValue(String v)
-
-