javax.print.attribute.standard
Class PrinterIsAcceptingJobs

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

public final class PrinterIsAcceptingJobs
extends EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax
implements PrintServiceAttribute sample code for javax.print.attribute.PrintServiceAttribute definition code for javax.print.attribute.PrintServiceAttribute

Class PrinterIsAcceptingJobs is a printing attribute class, an enumeration, that indicates whether the printer is currently able to accept jobs. This value is independent of the PrinterState sample code for javax.print.attribute.standard.PrinterState definition code for javax.print.attribute.standard.PrinterState and PrinterStateReasons sample code for javax.print.attribute.standard.PrinterStateReasons definition code for javax.print.attribute.standard.PrinterStateReasons attributes because its value does not affect the current job; rather it affects future jobs. If the value is NOT_ACCEPTING_JOBS, the printer will reject jobs even when the PrinterState sample code for javax.print.attribute.standard.PrinterState definition code for javax.print.attribute.standard.PrinterState is IDLE. If value is ACCEPTING_JOBS, the Printer will accept jobs even when the PrinterState sample code for javax.print.attribute.standard.PrinterState definition code for javax.print.attribute.standard.PrinterState is STOPPED.

IPP Compatibility: The IPP boolean value is "true" for ACCEPTING_JOBS and "false" for NOT_ACCEPTING_JOBS. TThe category name returned by getName() is the IPP attribute name. The enumeration's integer value is the IPP enum value. The toString() method returns the IPP string representation of the attribute value.

See Also:
Serialized Form

Field Summary
static PrinterIsAcceptingJobs sample code for javax.print.attribute.standard.PrinterIsAcceptingJobs definition code for javax.print.attribute.standard.PrinterIsAcceptingJobs ACCEPTING_JOBS sample code for javax.print.attribute.standard.PrinterIsAcceptingJobs.ACCEPTING_JOBS definition code for javax.print.attribute.standard.PrinterIsAcceptingJobs.ACCEPTING_JOBS
          The printer is currently acccepting jobs.
static PrinterIsAcceptingJobs sample code for javax.print.attribute.standard.PrinterIsAcceptingJobs definition code for javax.print.attribute.standard.PrinterIsAcceptingJobs NOT_ACCEPTING_JOBS sample code for javax.print.attribute.standard.PrinterIsAcceptingJobs.NOT_ACCEPTING_JOBS definition code for javax.print.attribute.standard.PrinterIsAcceptingJobs.NOT_ACCEPTING_JOBS
          The printer is currently rejecting any jobs sent to it.
 
Constructor Summary
protected PrinterIsAcceptingJobs sample code for javax.print.attribute.standard.PrinterIsAcceptingJobs.PrinterIsAcceptingJobs(int) definition code for javax.print.attribute.standard.PrinterIsAcceptingJobs.PrinterIsAcceptingJobs(int) (int value)
          Construct a new printer is accepting jobs enumeration value with the given integer value.
 
Method Summary
 Class sample code for java.lang.Class definition code for java.lang.Class <? extends Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.Attribute > getCategory sample code for javax.print.attribute.standard.PrinterIsAcceptingJobs.getCategory() definition code for javax.print.attribute.standard.PrinterIsAcceptingJobs.getCategory() ()
          Get the printing attribute class which is to be used as the "category" for this printing attribute value.
protected  EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax [] getEnumValueTable sample code for javax.print.attribute.standard.PrinterIsAcceptingJobs.getEnumValueTable() definition code for javax.print.attribute.standard.PrinterIsAcceptingJobs.getEnumValueTable() ()
          Returns the enumeration value table for class PrinterIsAcceptingJobs.
 String sample code for java.lang.String definition code for java.lang.String getName sample code for javax.print.attribute.standard.PrinterIsAcceptingJobs.getName() definition code for javax.print.attribute.standard.PrinterIsAcceptingJobs.getName() ()
          Get the name of the category of which this attribute value is an instance.
protected  String sample code for java.lang.String definition code for java.lang.String [] getStringTable sample code for javax.print.attribute.standard.PrinterIsAcceptingJobs.getStringTable() definition code for javax.print.attribute.standard.PrinterIsAcceptingJobs.getStringTable() ()
          Returns the string table for class PrinterIsAcceptingJobs.
 
Methods inherited from class javax.print.attribute.EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax
clone sample code for javax.print.attribute.EnumSyntax.clone() definition code for javax.print.attribute.EnumSyntax.clone() , getOffset sample code for javax.print.attribute.EnumSyntax.getOffset() definition code for javax.print.attribute.EnumSyntax.getOffset() , getValue sample code for javax.print.attribute.EnumSyntax.getValue() definition code for javax.print.attribute.EnumSyntax.getValue() , hashCode sample code for javax.print.attribute.EnumSyntax.hashCode() definition code for javax.print.attribute.EnumSyntax.hashCode() , readResolve sample code for javax.print.attribute.EnumSyntax.readResolve() definition code for javax.print.attribute.EnumSyntax.readResolve() , toString sample code for javax.print.attribute.EnumSyntax.toString() definition code for javax.print.attribute.EnumSyntax.toString()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

NOT_ACCEPTING_JOBS sample code for javax.print.attribute.standard.PrinterIsAcceptingJobs.NOT_ACCEPTING_JOBS

public static final PrinterIsAcceptingJobs sample code for javax.print.attribute.standard.PrinterIsAcceptingJobs definition code for javax.print.attribute.standard.PrinterIsAcceptingJobs  NOT_ACCEPTING_JOBS
The printer is currently rejecting any jobs sent to it.


ACCEPTING_JOBS sample code for javax.print.attribute.standard.PrinterIsAcceptingJobs.ACCEPTING_JOBS

public static final PrinterIsAcceptingJobs sample code for javax.print.attribute.standard.PrinterIsAcceptingJobs definition code for javax.print.attribute.standard.PrinterIsAcceptingJobs  ACCEPTING_JOBS
The printer is currently acccepting jobs.

Constructor Detail

PrinterIsAcceptingJobs sample code for javax.print.attribute.standard.PrinterIsAcceptingJobs(int) definition code for javax.print.attribute.standard.PrinterIsAcceptingJobs(int)

protected PrinterIsAcceptingJobs(int value)
Construct a new printer is accepting jobs enumeration value with the given integer value.

Parameters:
value - Integer value.
Method Detail

getStringTable sample code for javax.print.attribute.standard.PrinterIsAcceptingJobs.getStringTable() definition code for javax.print.attribute.standard.PrinterIsAcceptingJobs.getStringTable()

protected String sample code for java.lang.String definition code for java.lang.String [] getStringTable()
Returns the string table for class PrinterIsAcceptingJobs.

Overrides:
getStringTable sample code for javax.print.attribute.EnumSyntax.getStringTable() definition code for javax.print.attribute.EnumSyntax.getStringTable() in class EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax
Returns:
the string table

getEnumValueTable sample code for javax.print.attribute.standard.PrinterIsAcceptingJobs.getEnumValueTable() definition code for javax.print.attribute.standard.PrinterIsAcceptingJobs.getEnumValueTable()

protected EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax [] getEnumValueTable()
Returns the enumeration value table for class PrinterIsAcceptingJobs.

Overrides:
getEnumValueTable sample code for javax.print.attribute.EnumSyntax.getEnumValueTable() definition code for javax.print.attribute.EnumSyntax.getEnumValueTable() in class EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax
Returns:
the value table

getCategory sample code for javax.print.attribute.standard.PrinterIsAcceptingJobs.getCategory() definition code for javax.print.attribute.standard.PrinterIsAcceptingJobs.getCategory()

public final Class sample code for java.lang.Class definition code for java.lang.Class <? extends Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.Attribute > getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.

For class PrinterIsAcceptingJobs, the category is class PrinterIsAcceptingJobs itself.

Specified by:
getCategory sample code for javax.print.attribute.Attribute.getCategory() definition code for javax.print.attribute.Attribute.getCategory() in interface Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.Attribute
Returns:
Printing attribute class (category), an instance of class java.lang.Class sample code for java.lang.Class definition code for java.lang.Class .

getName sample code for javax.print.attribute.standard.PrinterIsAcceptingJobs.getName() definition code for javax.print.attribute.standard.PrinterIsAcceptingJobs.getName()

public final String sample code for java.lang.String definition code for java.lang.String  getName()
Get the name of the category of which this attribute value is an instance.

For class PrinterIsAcceptingJobs, the category name is "printer-is-accepting-jobs".

Specified by:
getName sample code for javax.print.attribute.Attribute.getName() definition code for javax.print.attribute.Attribute.getName() in interface Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.Attribute
Returns:
Attribute category name.