javax.print.attribute.standard

Class PrinterState

public final class PrinterState extends EnumSyntax implements PrintServiceAttribute

The PrinterState printing attribute reports the current state of the printer device.

The {@link javax.print.attribute.standard.PrinterStateReasons} attribute provides further detailed information about the given printer state. Detailed information about the printer state and printer state reasons attributes can be found in the RFC 2911.

IPP Compatibility: PrinterState is an IPP 1.1 attribute.

Field Summary
static PrinterStateIDLE
The printer device is in idle state.
static PrinterStatePROCESSING
The printer device is in processing state.
static PrinterStateSTOPPED
The printer device has stopped.
static PrinterStateUNKNOWN
The state is unknown currently.
Constructor Summary
protected PrinterState(int value)
Constructs a PrinterState object.
Method Summary
Class<? extends Attribute>getCategory()
Returns category of this class.
protected EnumSyntax[]getEnumValueTable()
Returns a table with the enumeration values for this object.
StringgetName()
Returns the name of this attribute.
protected String[]getStringTable()
Returns a table with the enumeration values represented as strings for this object.

Field Detail

IDLE

public static final PrinterState IDLE
The printer device is in idle state. New jobs can start processing without waiting.

PROCESSING

public static final PrinterState PROCESSING
The printer device is in processing state.

STOPPED

public static final PrinterState STOPPED
The printer device has stopped. No jobs can be processed and normally manual intervention is needed.

UNKNOWN

public static final PrinterState UNKNOWN
The state is unknown currently.

Constructor Detail

PrinterState

protected PrinterState(int value)
Constructs a PrinterState object.

Parameters: value the enum value.

Method Detail

getCategory

public Class<? extends Attribute> getCategory()
Returns category of this class.

Returns: The class PrinterState itself.

getEnumValueTable

protected EnumSyntax[] getEnumValueTable()
Returns a table with the enumeration values for this object.

Returns: The enumeration values.

getName

public String getName()
Returns the name of this attribute.

Returns: The name "printer-state".

getStringTable

protected String[] getStringTable()
Returns a table with the enumeration values represented as strings for this object.

Returns: The enumeration values as strings.