public enum PrinterStatusEnumeration extends Enum<PrinterStatusEnumeration>
Java class for PrinterStatusEnumeration.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="PrinterStatusEnumeration">
<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 PrinterStatusEnumeration |
fromValue(String v) |
String |
value() |
static PrinterStatusEnumeration |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PrinterStatusEnumeration[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrinterStatusEnumeration OK
public static final PrinterStatusEnumeration PAPER_LOW
public static final PrinterStatusEnumeration NO_PAPER
public static final PrinterStatusEnumeration PAPER_JAM
public static final PrinterStatusEnumeration OUT_OF_ORDER
public static PrinterStatusEnumeration[] values()
for (PrinterStatusEnumeration c : PrinterStatusEnumeration.values()) System.out.println(c);
public static PrinterStatusEnumeration 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 PrinterStatusEnumeration fromValue(String v)
Copyright © 2018. All rights reserved.