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 and Description |
|---|
NO_PAPER
Paper roll is empty, an operator must insert a new paper roll.
|
OK
The printer is operational.
|
OUT_OF_ORDER
The printer is out of order.
|
PAPER_JAM
An operator must remove the paper jam manually.
|
PAPER_LOW
The printer is operational but paper roll is almost empty.
|
| Modifier and Type | Method and Description |
|---|---|
static PrinterStatusType |
fromValue(String v)
From value printer status type.
|
String |
value()
Value string.
|
static PrinterStatusType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PrinterStatusType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrinterStatusType OK
public static final PrinterStatusType PAPER_LOW
public static final PrinterStatusType NO_PAPER
public static final PrinterStatusType PAPER_JAM
public static final PrinterStatusType OUT_OF_ORDER
public static PrinterStatusType[] values()
for (PrinterStatusType c : PrinterStatusType.values()) System.out.println(c);
public static PrinterStatusType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static PrinterStatusType fromValue(String v)
v - the vCopyright © 2022. All rights reserved.