javax.print.attribute.standard

Class JobState

public class JobState extends EnumSyntax implements PrintJobAttribute

The JobState printing attribute reports the current state of a job.

The {@link javax.print.attribute.standard.JobStateReasons} attribute provides further detailed information about the given job state. Detailed information about the job state and job state reasons can be found in the RFC 2911.

IPP Compatibility: JobState is an IPP 1.1 attribute.

Field Summary
static JobStateABORTED
The job has been aborted by the system.
static JobStateCANCELED
The job has been canceled by the client.
static JobStateCOMPLETED
The job has completed successfully.
static JobStatePENDING
The job is pending processing.
static JobStatePENDING_HELD
The job is currently not a candidate for printing because of reasons reported by the job-state-reasons attribute.
static JobStatePROCESSING
The job is currently processed.
static JobStatePROCESSING_STOPPED
The job's processing has stopped.
static JobStateUNKNOWN
The job state is currently unknown.
Constructor Summary
protected JobState(int value)
Constructs a JobState 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.
StringgetName()
Returns the name of this attribute.
protected String[]getStringTable()
Returns a table with the enumeration values represented as strings for this object.

Field Detail

ABORTED

public static final JobState ABORTED
The job has been aborted by the system.

CANCELED

public static final JobState CANCELED
The job has been canceled by the client.

COMPLETED

public static final JobState COMPLETED
The job has completed successfully.

PENDING

public static final JobState PENDING
The job is pending processing.

PENDING_HELD

public static final JobState PENDING_HELD
The job is currently not a candidate for printing because of reasons reported by the job-state-reasons attribute. If the reasons are no longer present it will return to the pending state.

PROCESSING

public static final JobState PROCESSING
The job is currently processed.

PROCESSING_STOPPED

public static final JobState PROCESSING_STOPPED
The job's processing has stopped. The job-state-reasons attribute may indicate the reason(s). The job will return to the processing state if the reasons are no longer present.

UNKNOWN

public static final JobState UNKNOWN
The job state is currently unknown.

Constructor Detail

JobState

protected JobState(int value)
Constructs a JobState object.

Parameters: value the enum value.

Method Detail

getCategory

public Class<? extends Attribute> getCategory()
Returns category of this class.

Returns: The class JobState itself.

getEnumValueTable

protected EnumSyntax[] getEnumValueTable()
Returns a table with the enumeration values for this object.

Returns: The enumeration values.

getName

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

Returns: The name "job-state".

getStringTable

protected String[] getStringTable()
Returns a table with the enumeration values represented as strings for this object.

Returns: The enumeration values as strings.