Enum InputCommandType

  • All Implemented Interfaces:
    Serializable, Comparable<InputCommandType>

    public enum InputCommandType
    extends Enum<InputCommandType>

    Java class for InputCommandType.

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

     <simpleType name="InputCommandType">
       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
         <enumeration value="GetAnyKey"/>
         <enumeration value="GetConfirmation"/>
         <enumeration value="SiteManager"/>
         <enumeration value="TextString"/>
         <enumeration value="DigitString"/>
         <enumeration value="DecimalString"/>
         <enumeration value="GetFunctionKey"/>
         <enumeration value="GetMenuEntry"/>
         <enumeration value="Password"/>
       </restriction>
     </simpleType>
     
    • Enum Constant Detail

      • GET_ANY_KEY

        public static final InputCommandType GET_ANY_KEY
        Wait for a key pressed on the Terminal, to be able to read the messageType displayed on the Terminal.
      • GET_CONFIRMATION

        public static final InputCommandType GET_CONFIRMATION
        Wait for a confirmation Yes (Y) or No (N) on the Sale Terminal. Wait for a confirmation (Valid or Cancel button) on the POI Terminal. The result of the command
      • SITE_MANAGER

        public static final InputCommandType SITE_MANAGER
        Wait for a confirmation Yes (Y) or No (N) of the Site Manager on the Sale Terminal.
      • TEXT_STRING

        public static final InputCommandType TEXT_STRING
        Wait for a string of alphanumeric characters, the length range could be specified.
      • DIGIT_STRING

        public static final InputCommandType DIGIT_STRING
        Wait for a string of digit characters, the length range could be specified.
      • DECIMAL_STRING

        public static final InputCommandType DECIMAL_STRING
        Wait for a string of digit characters with a decimal point, the length range could be specified.
      • GET_FUNCTION_KEY

        public static final InputCommandType GET_FUNCTION_KEY
        Wait for a function key pressed on the Terminal: From POI, Valid, Clear, Correct, Generic Function key number. From Sale, Generic Function key.
      • GET_MENU_ENTRY

        public static final InputCommandType GET_MENU_ENTRY
        To choose an entry among a list of entrys (all of them are not necessary selectable). The OutputFormat has to be MenuEntry.
      • PASSWORD

        public static final InputCommandType PASSWORD
        Request to enter a password with masked characters while typing the password.
    • Method Detail

      • values

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

        public static InputCommandType 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()
        Value string.
        Returns:
        the string
      • fromValue

        public static InputCommandType fromValue​(String v)
        From value input command type.
        Parameters:
        v - the v
        Returns:
        the input command type