Enum PrinterStatusType

  • All Implemented Interfaces:
    Serializable, Comparable<PrinterStatusType>

    public enum PrinterStatusType
    extends Enum<PrinterStatusType>

    Java class for PrinterStatusType.

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

     <simpleType name="PrinterStatusType">
       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
         <enumeration value="OK"/>
         <enumeration value="PaperLow"/>
         <enumeration value="NoPaper"/>
         <enumeration value="PaperJam"/>
         <enumeration value="OutOfOrder"/>
       </restriction>
     </simpleType>
     
    • Enum Constant Detail

      • PAPER_LOW

        public static final PrinterStatusType PAPER_LOW
        The printer is operational but paper roll is almost empty.
      • NO_PAPER

        public static final PrinterStatusType NO_PAPER
        Paper roll is empty, an operator must insert a new paper roll.
      • PAPER_JAM

        public static final PrinterStatusType PAPER_JAM
        An operator must remove the paper jam manually.
      • OUT_OF_ORDER

        public static final PrinterStatusType OUT_OF_ORDER
        The printer is out of order.
    • Method Detail

      • values

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

        public static PrinterStatusType 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 PrinterStatusType fromValue​(String v)
        From value printer status type.
        Parameters:
        v - the v
        Returns:
        the printer status type