Enum Reason

    • Enum Constant Detail

      • OK

        public static final Reason OK

        Ok button used to confirm dialog.

        Specification: petrol.

      • CORR

        public static final Reason CORR

        Corr button used to confirm/decline dialog.

        Specification: petrol.

      • STOP

        public static final Reason STOP

        Stop button used to decline dialog.

        Specification: petrol.

      • CARD_READER

        public static final Reason CARD_READER

        Card inserted/swiped/presented to confirm dialog.

        Specification: petrol.

      • AUTO_CONFIRM

        public static final Reason AUTO_CONFIRM

        Dialog confirmed automatically (e.g. with the completion of an input form).

        Specification: petrol.

      • TIMEOUT

        public static final Reason TIMEOUT

        No interaction performed and timeout occured.

        Specification: petrol.

      • CODE_OK

        public static final Reason CODE_OK

        Code Check succesful.

        Specification: petrol.

      • CODE_NOK

        public static final Reason CODE_NOK

        Code Check failed.

        Specification: petrol.

      • PIN_OK

        public static final Reason PIN_OK

        PIN Check succesful.

        Specification: petrol.

      • PIN_NOK

        public static final Reason PIN_NOK

        PIN Check failed.

        Specification: petrol.

      • F1

        public static final Reason F1

        Function key 1 used to confirm dialog.

        Specification: petrol.

      • F2

        public static final Reason F2

        Function key 2 used to confirm dialog.

        Specification: petrol.

      • F3

        public static final Reason F3

        Function key 3 used to confirm dialog.

        Specification: petrol.

      • OTHER_KEY

        public static final Reason OTHER_KEY

        Any other key used (not Ok, Stop, Corr, F1, F2) to confirm the dialog.

        Specification: petrol.

    • Method Detail

      • values

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

        public static Reason 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