Enum PersonCategoryEnum
- java.lang.Object
-
- java.lang.Enum<PersonCategoryEnum>
-
- eu.datex2.siri13.schema._1_0._1_0.PersonCategoryEnum
-
- All Implemented Interfaces:
Serializable,Comparable<PersonCategoryEnum>
public enum PersonCategoryEnum extends Enum<PersonCategoryEnum>
Java class for PersonCategoryEnum.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="PersonCategoryEnum"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="adult"/> <enumeration value="child"/> <enumeration value="emergencyServicesPerson"/> <enumeration value="infant"/> <enumeration value="medicalStaff"/> <enumeration value="police"/> <enumeration value="politician"/> <enumeration value="publicTransportPassenger"/> <enumeration value="sickPerson"/> <enumeration value="trafficPatrolOfficer"/> <enumeration value="veryImportantPerson"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADULTAdult.CHILDChild (age 4 to 17).EMERGENCY_SERVICES_PERSONA member of the emergency services, other than the police.INFANTInfant (age 0 to 3).MEDICAL_STAFFA member of the medical staff.POLICEA member of the police force.POLITICIANA politician.PUBLIC_TRANSPORT_PASSENGERA passenger on or from a public transport vehicle.SICK_PERSONA sick person.TRAFFIC_PATROL_OFFICERA traffic patrol officer of the road authority.VERY_IMPORTANT_PERSONA very important person.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PersonCategoryEnumfromValue(String v)Stringvalue()static PersonCategoryEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static PersonCategoryEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADULT
public static final PersonCategoryEnum ADULT
Adult.
-
CHILD
public static final PersonCategoryEnum CHILD
Child (age 4 to 17).
-
EMERGENCY_SERVICES_PERSON
public static final PersonCategoryEnum EMERGENCY_SERVICES_PERSON
A member of the emergency services, other than the police.
-
INFANT
public static final PersonCategoryEnum INFANT
Infant (age 0 to 3).
-
MEDICAL_STAFF
public static final PersonCategoryEnum MEDICAL_STAFF
A member of the medical staff.
-
POLICE
public static final PersonCategoryEnum POLICE
A member of the police force.
-
POLITICIAN
public static final PersonCategoryEnum POLITICIAN
A politician.
-
PUBLIC_TRANSPORT_PASSENGER
public static final PersonCategoryEnum PUBLIC_TRANSPORT_PASSENGER
A passenger on or from a public transport vehicle.
-
SICK_PERSON
public static final PersonCategoryEnum SICK_PERSON
A sick person.
-
TRAFFIC_PATROL_OFFICER
public static final PersonCategoryEnum TRAFFIC_PATROL_OFFICER
A traffic patrol officer of the road authority.
-
VERY_IMPORTANT_PERSON
public static final PersonCategoryEnum VERY_IMPORTANT_PERSON
A very important person.
-
-
Method Detail
-
values
public static PersonCategoryEnum[] 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 (PersonCategoryEnum c : PersonCategoryEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PersonCategoryEnum 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 PersonCategoryEnum fromValue(String v)
-
-