25
26 package javax.print.attribute.standard;
27
28 import javax.print.attribute.Attribute;
29 import javax.print.attribute.EnumSyntax;
30 import javax.print.attribute.PrintJobAttribute;
31
32 /**
33 * JobState is a printing attribute class, an enumeration, that identifies
34 * the current state of a print job. Class JobState defines standard job state
35 * values. A Print Service implementation only needs to report those job
36 * states which are appropriate for the particular implementation; it does not
37 * have to report every defined job state. The {@link JobStateReasons
38 * JobStateReasons} attribute augments the JobState attribute to give more
39 * detailed information about the job in the given job state.
40 * <P>
41 * <B>IPP Compatibility:</B> The category name returned by
42 * <CODE>getName()</CODE> is the IPP attribute name. The enumeration's
43 * integer value is the IPP enum value. The <code>toString()</code> method
44 * returns the IPP string representation of the attribute value.
45 * <P>
46 *
47 * @author Alan Kaminsky
48 */
49
50 public class JobState extends EnumSyntax implements PrintJobAttribute {
51
52 private static final long serialVersionUID = 400465010094018920L;
53
54 /**
55 * The job state is unknown.
56 */
57 public static final JobState UNKNOWN = new JobState(0);
58
59 /**
60 * The job is a candidate to start processing, but is not yet processing.
61 */
62 public static final JobState PENDING = new JobState(3);
63
64 /**
65 * The job is not a candidate for processing for any number of reasons but
|
25
26 package javax.print.attribute.standard;
27
28 import javax.print.attribute.Attribute;
29 import javax.print.attribute.EnumSyntax;
30 import javax.print.attribute.PrintJobAttribute;
31
32 /**
33 * JobState is a printing attribute class, an enumeration, that identifies
34 * the current state of a print job. Class JobState defines standard job state
35 * values. A Print Service implementation only needs to report those job
36 * states which are appropriate for the particular implementation; it does not
37 * have to report every defined job state. The {@link JobStateReasons
38 * JobStateReasons} attribute augments the JobState attribute to give more
39 * detailed information about the job in the given job state.
40 * <P>
41 * <B>IPP Compatibility:</B> The category name returned by
42 * <CODE>getName()</CODE> is the IPP attribute name. The enumeration's
43 * integer value is the IPP enum value. The <code>toString()</code> method
44 * returns the IPP string representation of the attribute value.
45 *
46 * @author Alan Kaminsky
47 */
48
49 public class JobState extends EnumSyntax implements PrintJobAttribute {
50
51 private static final long serialVersionUID = 400465010094018920L;
52
53 /**
54 * The job state is unknown.
55 */
56 public static final JobState UNKNOWN = new JobState(0);
57
58 /**
59 * The job is a candidate to start processing, but is not yet processing.
60 */
61 public static final JobState PENDING = new JobState(3);
62
63 /**
64 * The job is not a candidate for processing for any number of reasons but
|