Enum PersonCategoryEnum
- java.lang.Object
-
- java.lang.Enum<PersonCategoryEnum>
-
- eu.datex2.siri21.schema._2_0rc1._2_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="fireman"/> <enumeration value="infant"/> <enumeration value="medicalStaff"/> <enumeration value="memberOfThePublic"/> <enumeration value="policeman"/> <enumeration value="politician"/> <enumeration value="publicTransportPassenger"/> <enumeration value="sickPerson"/> <enumeration value="trafficOfficer"/> <enumeration value="trafficWarden"/> <enumeration value="veryImportantPerson"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADULTCHILDEMERGENCY_SERVICES_PERSONFIREMANINFANTMEDICAL_STAFFMEMBER_OF_THE_PUBLICPOLICEMANPOLITICIANPUBLIC_TRANSPORT_PASSENGERSICK_PERSONTRAFFIC_OFFICERTRAFFIC_WARDENVERY_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
-
CHILD
public static final PersonCategoryEnum CHILD
-
EMERGENCY_SERVICES_PERSON
public static final PersonCategoryEnum EMERGENCY_SERVICES_PERSON
-
FIREMAN
public static final PersonCategoryEnum FIREMAN
-
INFANT
public static final PersonCategoryEnum INFANT
-
MEDICAL_STAFF
public static final PersonCategoryEnum MEDICAL_STAFF
-
MEMBER_OF_THE_PUBLIC
public static final PersonCategoryEnum MEMBER_OF_THE_PUBLIC
-
POLICEMAN
public static final PersonCategoryEnum POLICEMAN
-
POLITICIAN
public static final PersonCategoryEnum POLITICIAN
-
PUBLIC_TRANSPORT_PASSENGER
public static final PersonCategoryEnum PUBLIC_TRANSPORT_PASSENGER
-
SICK_PERSON
public static final PersonCategoryEnum SICK_PERSON
-
TRAFFIC_OFFICER
public static final PersonCategoryEnum TRAFFIC_OFFICER
-
TRAFFIC_WARDEN
public static final PersonCategoryEnum TRAFFIC_WARDEN
-
VERY_IMPORTANT_PERSON
public static final PersonCategoryEnum 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)
-
-