Package com.zebra.sdk.printer
Enum Class PrinterLanguage
- All Implemented Interfaces:
Serializable,Comparable<PrinterLanguage>,Constable
Enumeration of the various printer control languages supported by Zebra Printers.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPrinter control language CPCLPrinter control language line_print mode.Printer control language ZPL -
Method Summary
Modifier and TypeMethodDescriptionstatic PrinterLanguagegetLanguage(String name) Converts the string name to the appropriate enum value.toString()The name of the printer language - (e.g. "ZPL" or "CPCL").static PrinterLanguageReturns the enum constant of this class with the specified name.static PrinterLanguage[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
ZPL
Printer control language ZPL -
CPCL
Printer control language CPCL -
LINE_PRINT
Printer control language line_print mode.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getLanguage
Converts the string name to the appropriate enum value. Thenameparameter accepts the value returned from the printer's 'device.langauges' SGD.- Parameters:
name- printer control language name (e.g. "zpl", "cpcl", or "line_print")- Returns:
- the printer language
- Throws:
ZebraPrinterLanguageUnknownException- if the printer language cannot be determined
-
toString
The name of the printer language - (e.g. "ZPL" or "CPCL").- Overrides:
toStringin classEnum<PrinterLanguage>- See Also:
-