APIdia Launch Partner
Top Description Fields Constructors Methods
javax.print.attribute.standard

public final Class PrinterIsAcceptingJobs

extends EnumSyntax
implements PrintServiceAttribute
Class Inheritance
All Implemented Interfaces
javax.print.attribute.PrintServiceAttribute, javax.print.attribute.Attribute, java.io.Serializable
Imports
java.io.Serial, javax.print.attribute.Attribute, .EnumSyntax, .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 and 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 is IDLE. If value is ACCEPTING_JOBS, the Printer will accept jobs even when the PrinterState is STOPPED.

IPP Compatibility: The IPP boolean value is "true" for ACCEPTING_JOBS and "false" for NOT_ACCEPTING_JOBS. The 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.

Author
Alan Kaminsky

Field Summary

Modifier and TypeField and Description
public static final PrinterIsAcceptingJobs
ACCEPTING_JOBS

The printer is currently accepting jobs.

private static final PrinterIsAcceptingJobs[]
myEnumValueTable

The enumeration value table for class PrinterIsAcceptingJobs.

private static final String[]
myStringTable

The string table for class PrinterIsAcceptingJobs.

public static final PrinterIsAcceptingJobs
NOT_ACCEPTING_JOBS

The printer is currently rejecting any jobs sent to it.

private static final long
serialVersionUID

Hides javax.print.attribute.EnumSyntax.serialVersionUID.

Use serialVersionUID from JDK 1.4 for interoperability.

Constructor Summary

AccessConstructor and Description
protected
PrinterIsAcceptingJobs(int
Integer value
value
)

Construct a new printer is accepting jobs enumeration value with the given integer value.

Method Summary

Modifier and TypeMethod and Description
public final Class<? extends Attribute>

Returns:

printing attribute class (category), an instance of class java.lang.Class
getCategory
()

Implements javax.print.attribute.Attribute.getCategory.

Get the printing attribute class which is to be used as the "category" for this printing attribute value.

protected EnumSyntax[]
getEnumValueTable()

Overrides javax.print.attribute.EnumSyntax.getEnumValueTable.

Returns the enumeration value table for class PrinterIsAcceptingJobs.

public final String

Returns:

attribute category name
getName
()

Implements javax.print.attribute.Attribute.getName.

Get the name of the category of which this attribute value is an instance.

protected String[]
getStringTable()

Overrides javax.print.attribute.EnumSyntax.getStringTable.

Returns the string table for class PrinterIsAcceptingJobs.

Inherited from javax.print.attribute.EnumSyntax:
clonegetOffsetgetValuehashCodereadResolvetoString

Field Detail

ACCEPTING_JOBSback to summary
public static final PrinterIsAcceptingJobs ACCEPTING_JOBS

The printer is currently accepting jobs.

myEnumValueTableback to summary
private static final PrinterIsAcceptingJobs[] myEnumValueTable

The enumeration value table for class PrinterIsAcceptingJobs.

myStringTableback to summary
private static final String[] myStringTable

The string table for class PrinterIsAcceptingJobs.

NOT_ACCEPTING_JOBSback to summary
public static final PrinterIsAcceptingJobs NOT_ACCEPTING_JOBS

The printer is currently rejecting any jobs sent to it.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.print.attribute.EnumSyntax.serialVersionUID.

Use serialVersionUID from JDK 1.4 for interoperability.

Annotations
@Serial

Constructor Detail

PrinterIsAcceptingJobsback to summary
protected PrinterIsAcceptingJobs(int value)

Construct a new printer is accepting jobs enumeration value with the given integer value.

Parameters
value:int

Integer value

Method Detail

getCategoryback to summary
public final Class<? extends Attribute> getCategory()

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

Returns:Class<? extends Attribute>

printing attribute class (category), an instance of class java.lang.Class

Annotations
@Override
getEnumValueTableback to summary
protected EnumSyntax[] getEnumValueTable()

Overrides javax.print.attribute.EnumSyntax.getEnumValueTable.

Returns the enumeration value table for class PrinterIsAcceptingJobs.

Annotations
@Override
getNameback to summary
public final String getName()

Implements javax.print.attribute.Attribute.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".

Returns:String

attribute category name

Annotations
@Override
getStringTableback to summary
protected String[] getStringTable()

Overrides javax.print.attribute.EnumSyntax.getStringTable.

Returns the string table for class PrinterIsAcceptingJobs.

Annotations
@Override