Package com.adyen.model.nexo
Enum PrinterStatusType
- java.lang.Object
-
- java.lang.Enum<PrinterStatusType>
-
- com.adyen.model.nexo.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 Summary
Enum Constants Enum Constant Description NO_PAPERPaper roll is empty, an operator must insert a new paper roll.OKThe printer is operational.OUT_OF_ORDERThe printer is out of order.PAPER_JAMAn operator must remove the paper jam manually.PAPER_LOWThe printer is operational but paper roll is almost empty.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PrinterStatusTypefromValue(String v)From value printer status type.Stringvalue()Value string.static PrinterStatusTypevalueOf(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.
-
-
-
Enum Constant Detail
-
OK
public static final PrinterStatusType OK
The printer is operational.
-
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 nameNullPointerException- 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
-
-