javax.print.attribute.standard
Class PrinterState

java.lang.Object
  extended by javax.print.attribute.EnumSyntax
      extended by javax.print.attribute.standard.PrinterState
All Implemented Interfaces:
Serializable, Cloneable, Attribute, PrintServiceAttribute

public final class PrinterState
extends EnumSyntax
implements PrintServiceAttribute

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

The 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.

See Also:
Serialized Form

Field Summary
static PrinterState IDLE
          The printer device is in idle state.
static PrinterState PROCESSING
          The printer device is in processing state.
static PrinterState STOPPED
          The printer device has stopped.
static PrinterState UNKNOWN
          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.
 String getName()
          Returns the name of this attribute.
protected  String[] getStringTable()
          Returns a table with the enumeration values represented as strings for this object.
 
Methods inherited from class javax.print.attribute.EnumSyntax
clone, getOffset, getValue, hashCode, readResolve, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN

public static final PrinterState UNKNOWN
The state is unknown currently.


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.

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.

Specified by:
getCategory in interface Attribute
Returns:
The class PrinterState itself.

getName

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

Specified by:
getName in interface Attribute
Returns:
The name "printer-state".

getStringTable

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

Overrides:
getStringTable in class EnumSyntax
Returns:
The enumeration values as strings.

getEnumValueTable

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

Overrides:
getEnumValueTable in class EnumSyntax
Returns:
The enumeration values.