javax.print.attribute.standard
Class PrinterIsAcceptingJobs

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

public final class PrinterIsAcceptingJobs
extends EnumSyntax
implements PrintServiceAttribute

The PrinterIsAcceptingJobs printing attribute signals if a print services is currently accepting jobs.

IPP Compatibility: PrinterIsAcceptingJobs is an IPP 1.1 attribute. The IPP specification treats PrinterIsAcceptingJobs as boolean type which is not available in the Java Print Service API. The IPP boolean value "true" corresponds to ACCEPTING_JOBS and "false" to NOT_ACCEPTING_JOBS.

See Also:
Serialized Form

Field Summary
static PrinterIsAcceptingJobs ACCEPTING_JOBS
          The printer is accepting jobs.
static PrinterIsAcceptingJobs NOT_ACCEPTING_JOBS
          The printer is not accepting jobs currently.
 
Constructor Summary
protected PrinterIsAcceptingJobs(int value)
          Constructs a PrinterIsAcceptingJobs 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

NOT_ACCEPTING_JOBS

public static final PrinterIsAcceptingJobs NOT_ACCEPTING_JOBS
The printer is not accepting jobs currently.


ACCEPTING_JOBS

public static final PrinterIsAcceptingJobs ACCEPTING_JOBS
The printer is accepting jobs.

Constructor Detail

PrinterIsAcceptingJobs

protected PrinterIsAcceptingJobs(int value)
Constructs a PrinterIsAcceptingJobs 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 PrinterIsAcceptingJobs itself.

getName

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

Specified by:
getName in interface Attribute
Returns:
The name "printer-is-accepting-jobs".

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.