JobStateReasons is a printing attribute class, a set of
enumeration values, that provides additional information about the job's
current state, i.e., information that augments the value of the job's
JobState attribute.
Instances of JobStateReason do not appear in a Print
Job's attribute set directly. Rather, a JobStateReasons attribute
appears in the Print Job's attribute set. The JobStateReasons
attribute contains zero, one, or more than one
JobStateReason objects which pertain to the Print
Job's status. The printer adds a JobStateReason object
to the Print Job's JobStateReasons attribute when the corresponding condition
becomes true of the Print Job, and the printer removes the
JobStateReason object again when the corresponding
condition becomes false, regardless of whether the Print Job's overall
JobState also changed.
Class JobStateReasons inherits its implementation from class
java.. Unlike most printing attributes
which are immutable once constructed, class JobStateReasons is
designed to be mutable; you can add JobStateReason
objects to an existing JobStateReasons object and remove them again.
However, like class java., class
JobStateReasons is not multiple thread safe. If a
JobStateReasons object will be used by multiple threads, be sure to
synchronize its operations (e.g., using a synchronized set view obtained
from class java.).
IPP Compatibility: The string value returned by each individual
JobStateReason object's toString() method
gives the IPP keyword value. The category name returned by getName()
gives the IPP attribute name.
| Modifier and Type | Field and Description |
|---|---|
| private static final long | serialVersionUID
Use serialVersionUID from JDK 1.4 for interoperability.
|
| Access | Constructor and Description |
|---|---|
| public | JobStateReasons()
Construct a new, empty job state reasons attribute; the underlying hash set has the default initial capacity and load factor. |
| public | JobStateReasons(int
initial capacity initialCapacity)Construct a new, empty job state reasons attribute; the underlying hash set has the given initial capacity and the default load factor. |
| public | JobStateReasons(int
initial capacity initialCapacity, float load factor loadFactor)Construct a new, empty job state reasons attribute; the underlying hash set has the given initial capacity and load factor. |
| public | JobStateReasons(Collection<JobStateReason>
collection to copy collection)Construct a new job state reasons attribute that contains the same
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if this job state reasons attribute did not already
contain the specified elementelement to be added to this job state reasons attribute o)Overrides java. Implements java. Adds the specified element to this job state reasons attribute if it is not already present. |
| public final Class | Returns: printing attribute class (category), an instance of classjava.Implements javax. Get the printing attribute class which is to be used as the "category" for this printing attribute value. |
| public final String | Returns: attribute category nameImplements javax. Get the name of the category of which this attribute value is an instance. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. Use serialVersionUID from JDK 1.4 for interoperability. | |
| JobStateReasons | back to summary |
|---|---|
| public JobStateReasons() Construct a new, empty job state reasons attribute; the underlying hash set has the default initial capacity and load factor. | |
| JobStateReasons | back to summary |
|---|---|
| public JobStateReasons(int initialCapacity) Construct a new, empty job state reasons attribute; the underlying hash set has the given initial capacity and the default load factor.
| |
| JobStateReasons | back to summary |
|---|---|
| public JobStateReasons(int initialCapacity, float loadFactor) Construct a new, empty job state reasons attribute; the underlying hash set has the given initial capacity and load factor.
| |
| JobStateReasons | back to summary |
|---|---|
| public JobStateReasons(Collection<JobStateReason> collection) Construct a new job state reasons attribute that contains the same
| |
| add | back to summary |
|---|---|
| public boolean add(JobStateReason o) Overrides java. Implements java. Adds the specified element to this job state reasons attribute if it is
not already present. The element to be added must be an instance of class
| |
| getCategory | back to summary |
|---|---|
| public final Class Implements javax. Get the printing attribute class which is to be used as the "category" for this printing attribute value.
For class
| |
| getName | back to summary |
|---|---|
| public final String getName() Implements javax. Get the name of the category of which this attribute value is an instance.
For class JobStateReasons, the category name is
| |