44 * attribute appears in the Print Service's attribute set. The {@link
45 * PrinterStateReasons PrinterStateReasons} attribute contains zero, one, or
46 * more than one PrinterStateReason objects which pertain to the
47 * Print Service's status, and each PrinterStateReason object is
48 * associated with a {@link Severity Severity} level of REPORT (least severe),
49 * WARNING, or ERROR (most severe). The printer adds a PrinterStateReason
50 * object to the Print Service's
51 * {@link PrinterStateReasons PrinterStateReasons} attribute when the
52 * corresponding condition becomes true of the printer, and the printer
53 * removes the PrinterStateReason object again when the corresponding
54 * condition becomes false, regardless of whether the Print Service's overall
55 * {@link PrinterState PrinterState} also changed.
56 * <P>
57 * <B>IPP Compatibility:</B>
58 * The string values returned by each individual {@link PrinterStateReason} and
59 * associated {@link Severity} object's <CODE>toString()</CODE>
60 * methods, concatenated together with a hyphen (<CODE>"-"</CODE>) in
61 * between, gives the IPP keyword value for a {@link PrinterStateReasons}.
62 * The category name returned by <CODE>getName()</CODE> gives the IPP
63 * attribute name.
64 * <P>
65 *
66 * @author Alan Kaminsky
67 */
68 public class PrinterStateReason extends EnumSyntax implements Attribute {
69
70 private static final long serialVersionUID = -1623720656201472593L;
71
72 /**
73 * The printer has detected an error other than ones listed below.
74 */
75 public static final PrinterStateReason OTHER = new PrinterStateReason(0);
76
77 /**
78 * A tray has run out of media.
79 */
80 public static final PrinterStateReason
81 MEDIA_NEEDED = new PrinterStateReason(1);
82
83 /**
84 * The device has a media jam.
|
44 * attribute appears in the Print Service's attribute set. The {@link
45 * PrinterStateReasons PrinterStateReasons} attribute contains zero, one, or
46 * more than one PrinterStateReason objects which pertain to the
47 * Print Service's status, and each PrinterStateReason object is
48 * associated with a {@link Severity Severity} level of REPORT (least severe),
49 * WARNING, or ERROR (most severe). The printer adds a PrinterStateReason
50 * object to the Print Service's
51 * {@link PrinterStateReasons PrinterStateReasons} attribute when the
52 * corresponding condition becomes true of the printer, and the printer
53 * removes the PrinterStateReason object again when the corresponding
54 * condition becomes false, regardless of whether the Print Service's overall
55 * {@link PrinterState PrinterState} also changed.
56 * <P>
57 * <B>IPP Compatibility:</B>
58 * The string values returned by each individual {@link PrinterStateReason} and
59 * associated {@link Severity} object's <CODE>toString()</CODE>
60 * methods, concatenated together with a hyphen (<CODE>"-"</CODE>) in
61 * between, gives the IPP keyword value for a {@link PrinterStateReasons}.
62 * The category name returned by <CODE>getName()</CODE> gives the IPP
63 * attribute name.
64 *
65 * @author Alan Kaminsky
66 */
67 public class PrinterStateReason extends EnumSyntax implements Attribute {
68
69 private static final long serialVersionUID = -1623720656201472593L;
70
71 /**
72 * The printer has detected an error other than ones listed below.
73 */
74 public static final PrinterStateReason OTHER = new PrinterStateReason(0);
75
76 /**
77 * A tray has run out of media.
78 */
79 public static final PrinterStateReason
80 MEDIA_NEEDED = new PrinterStateReason(1);
81
82 /**
83 * The device has a media jam.
|