Enum 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 Detail

      • EMERGENCY_SERVICES_PERSON

        public static final PersonCategoryEnum EMERGENCY_SERVICES_PERSON
        A member of the emergency services, other than the police.
      • MEDICAL_STAFF

        public static final PersonCategoryEnum MEDICAL_STAFF
        A member of the medical staff.
      • PUBLIC_TRANSPORT_PASSENGER

        public static final PersonCategoryEnum PUBLIC_TRANSPORT_PASSENGER
        A passenger on or from a public transport vehicle.
      • 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 name
        NullPointerException - if the argument is null
      • value

        public String value()