Enum InvolvementRolesEnum
- java.lang.Object
-
- java.lang.Enum<InvolvementRolesEnum>
-
- eu.datex2.siri14.schema._1_0._1_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 CYCLISTCyclist.PEDESTRIANPedestrian.UNKNOWNInvolvement role is unknown.VEHICLE_DRIVERVehicle driver.VEHICLE_OCCUPANTVehicle occupant (driver or passenger not specified).VEHICLE_PASSENGERVehicle passenger.WITNESSWitness.
-
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
Cyclist.
-
PEDESTRIAN
public static final InvolvementRolesEnum PEDESTRIAN
Pedestrian.
-
UNKNOWN
public static final InvolvementRolesEnum UNKNOWN
Involvement role is unknown.
-
VEHICLE_DRIVER
public static final InvolvementRolesEnum VEHICLE_DRIVER
Vehicle driver.
-
VEHICLE_OCCUPANT
public static final InvolvementRolesEnum VEHICLE_OCCUPANT
Vehicle occupant (driver or passenger not specified).
-
VEHICLE_PASSENGER
public static final InvolvementRolesEnum VEHICLE_PASSENGER
Vehicle passenger.
-
WITNESS
public static final InvolvementRolesEnum WITNESS
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)
-
-