public enum JobStateReasons extends java.lang.Enum<JobStateReasons>
These values MAY be used with any Job state or states for which the reason makes sense. Some of these value definitions indicate conformance requirements; the rest are OPTIONAL. Furthermore, when implemented, the Printer MUST return these values when the reason applies and MUST NOT return them when the reason no longer applies, whether the value of the Job's "job-state" attribute changed or not. When the Job does not have any reasons for being in its current state, the value of the Job's "job-state-reasons" attribute MUST be 'none'.
| Enum Constant and Description |
|---|
JOB_INCOMING
Either (1) the Printer has accepted the Create-Job
operation and is expecting additional Send-Document and/or
Send-URI operations or (2) the Printer is retrieving/accepting
Document data as a result of a Print-Job, Print-URI,
Send-Document, or Send-URI operation.
|
NONE
There are no reasons for the Job's current state.
|
| Modifier and Type | Method and Description |
|---|---|
static JobStateReasons |
of(java.lang.String value)
Maps the given string to the corresponding element.
|
java.lang.String |
toString()
This implementation generates the same representation as described in
section RFC-8011 (section 5.3.8).
|
static JobStateReasons |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JobStateReasons[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JobStateReasons NONE
public static final JobStateReasons JOB_INCOMING
public static JobStateReasons[] values()
for (JobStateReasons c : JobStateReasons.values()) System.out.println(c);
public static JobStateReasons valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String toString()
toString in class java.lang.Enum<JobStateReasons>public static JobStateReasons of(java.lang.String value)
value - e.g. "job-incoming"Copyright © 2018–2020. All rights reserved.