25 package javax.print.attribute.standard;
26
27 import javax.print.attribute.Attribute;
28 import javax.print.attribute.EnumSyntax;
29 import javax.print.attribute.PrintServiceAttribute;
30
31 /**
32 * Class PrinterState is a printing attribute class, an enumeration, that
33 * identifies the current state of a printer. Class PrinterState defines
34 * standard printer state values. A Print Service implementation only needs
35 * to report those printer states which are appropriate for the particular
36 * implementation; it does not have to report every defined printer state. The
37 * {@link PrinterStateReasons PrinterStateReasons} attribute augments the
38 * PrinterState attribute to give more detailed information about the printer
39 * in given printer 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 public final class PrinterState extends EnumSyntax
50 implements PrintServiceAttribute {
51
52 private static final long serialVersionUID = -649578618346507718L;
53
54 /**
55 * The printer state is unknown.
56 */
57 public static final PrinterState UNKNOWN = new PrinterState(0);
58
59 /**
60 * Indicates that new jobs can start processing without waiting.
61 */
62 public static final PrinterState IDLE = new PrinterState(3);
63
64 /**
65 * Indicates that jobs are processing;
|
25 package javax.print.attribute.standard;
26
27 import javax.print.attribute.Attribute;
28 import javax.print.attribute.EnumSyntax;
29 import javax.print.attribute.PrintServiceAttribute;
30
31 /**
32 * Class PrinterState is a printing attribute class, an enumeration, that
33 * identifies the current state of a printer. Class PrinterState defines
34 * standard printer state values. A Print Service implementation only needs
35 * to report those printer states which are appropriate for the particular
36 * implementation; it does not have to report every defined printer state. The
37 * {@link PrinterStateReasons PrinterStateReasons} attribute augments the
38 * PrinterState attribute to give more detailed information about the printer
39 * in given printer 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 public final class PrinterState extends EnumSyntax
49 implements PrintServiceAttribute {
50
51 private static final long serialVersionUID = -649578618346507718L;
52
53 /**
54 * The printer state is unknown.
55 */
56 public static final PrinterState UNKNOWN = new PrinterState(0);
57
58 /**
59 * Indicates that new jobs can start processing without waiting.
60 */
61 public static final PrinterState IDLE = new PrinterState(3);
62
63 /**
64 * Indicates that jobs are processing;
|