public enum PrinterStatus extends java.lang.Enum<PrinterStatus>
Enum Constant and Description |
---|
CANCELLED
The print job was aborted.
|
ERROR
Generic error.
|
LOW_BATTERY
The terminal is low on battery and not able to perform printing.
|
NONE
The printer status is unknown.
|
OK
The printer status is normal and ready for printing.
|
OUT_OF_PAPER
The printer is out of paper.
|
OVERHEATED_BATTERY
The terminal has an overheated battery and not able to perform printing.
|
Modifier and Type | Method and Description |
---|---|
static PrinterStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PrinterStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrinterStatus NONE
public static final PrinterStatus OK
public static final PrinterStatus CANCELLED
public static final PrinterStatus OUT_OF_PAPER
public static final PrinterStatus LOW_BATTERY
public static final PrinterStatus OVERHEATED_BATTERY
public static final PrinterStatus ERROR
public static PrinterStatus[] values()
for (PrinterStatus c : PrinterStatus.values()) System.out.println(c);
public static PrinterStatus valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null