public static enum XPrinterDev.ErrorCode extends java.lang.Enum<XPrinterDev.ErrorCode>
Enum Constant and Description |
---|
ClosePortFailed |
ClosePortSuccess |
OpenPortFailed |
OpenPortSuccess |
ReadDataFailed |
ReadDataSuccess |
UnknownError |
WriteDataFailed |
WriteDataSuccess |
Modifier and Type | Method and Description |
---|---|
static XPrinterDev.ErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static XPrinterDev.ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XPrinterDev.ErrorCode OpenPortFailed
public static final XPrinterDev.ErrorCode OpenPortSuccess
public static final XPrinterDev.ErrorCode ClosePortFailed
public static final XPrinterDev.ErrorCode ClosePortSuccess
public static final XPrinterDev.ErrorCode WriteDataFailed
public static final XPrinterDev.ErrorCode WriteDataSuccess
public static final XPrinterDev.ErrorCode ReadDataSuccess
public static final XPrinterDev.ErrorCode ReadDataFailed
public static final XPrinterDev.ErrorCode UnknownError
public static XPrinterDev.ErrorCode[] values()
for (XPrinterDev.ErrorCode c : XPrinterDev.ErrorCode.values()) System.out.println(c);
public static XPrinterDev.ErrorCode 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