Enum AdviceTypeEnumeration

  • All Implemented Interfaces:
    Serializable, Comparable<AdviceTypeEnumeration>

    public enum AdviceTypeEnumeration
    extends Enum<AdviceTypeEnumeration>

    Java class for AdviceTypeEnumeration.

    The following schema fragment specifies the expected content contained within this class.

     <simpleType name="AdviceTypeEnumeration">
       <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
         <enumeration value="unknown"/>
         <enumeration value="useReplacementBus"/>
         <enumeration value="useReplacementTrain"/>
         <enumeration value="useAlternativeRoute"/>
         <enumeration value="goOnFoot"/>
         <enumeration value="dangerLeaveStation"/>
         <enumeration value="noMeansOfTravel"/>
         <enumeration value="useDifferentStops"/>
         <enumeration value="useAlternativeStop"/>
         <enumeration value="dangerDoNotLeaveVehicle"/>
         <enumeration value="takeAdviceAnnouncements"/>
         <enumeration value="takeAdvicePersonnel"/>
         <enumeration value="obeyAdvicePolice"/>
         <enumeration value="useOtherPT"/>
         <enumeration value="useInterchange"/>
         <enumeration value="noAdvice"/>
         <enumeration value="undefined"/>
       </restriction>
     </simpleType>
     
    • Enum Constant Detail

      • USE_REPLACEMENT_BUS

        public static final AdviceTypeEnumeration USE_REPLACEMENT_BUS
        TPEG Pts39_1, use replacement bus
      • USE_REPLACEMENT_TRAIN

        public static final AdviceTypeEnumeration USE_REPLACEMENT_TRAIN
        TPEG Pts39_2, use replacement train
      • USE_ALTERNATIVE_ROUTE

        public static final AdviceTypeEnumeration USE_ALTERNATIVE_ROUTE
        TPEG Pts39_3, use the alternative route
      • DANGER_LEAVE_STATION

        public static final AdviceTypeEnumeration DANGER_LEAVE_STATION
        TPEG Pts39_5, please leave the station! Danger!
      • NO_MEANS_OF_TRAVEL

        public static final AdviceTypeEnumeration NO_MEANS_OF_TRAVEL
        TPEG Pts39_6, no means of travel
      • USE_DIFFERENT_STOPS

        public static final AdviceTypeEnumeration USE_DIFFERENT_STOPS
        TPEG Pts39_7, use different stops
      • USE_ALTERNATIVE_STOP

        public static final AdviceTypeEnumeration USE_ALTERNATIVE_STOP
        TPEG Pts39_8, use alternative stop
      • DANGER_DO_NOT_LEAVE_VEHICLE

        public static final AdviceTypeEnumeration DANGER_DO_NOT_LEAVE_VEHICLE
        TPEG Pts39_9, do not leave vehicle! Danger!
      • TAKE_ADVICE_ANNOUNCEMENTS

        public static final AdviceTypeEnumeration TAKE_ADVICE_ANNOUNCEMENTS
        TPEG Pts39_10, take advice from announcements
      • TAKE_ADVICE_PERSONNEL

        public static final AdviceTypeEnumeration TAKE_ADVICE_PERSONNEL
        TPEG Pts39_11, take advice from personnel
      • OBEY_ADVICE_POLICE

        public static final AdviceTypeEnumeration OBEY_ADVICE_POLICE
        TPEG Pts39_12, obey advice from police
    • Method Detail

      • values

        public static AdviceTypeEnumeration[] 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 (AdviceTypeEnumeration c : AdviceTypeEnumeration.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AdviceTypeEnumeration 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()