60 * {@link PrinterStateReason PrinterStateReason} object (key) mapping to a
61 * {@link Severity Severity} object (value):
62 * <P>
63 * Unlike most printing attributes which are immutable once constructed, class
64 * PrinterStateReasons is designed to be mutable; you can add {@link
65 * PrinterStateReason PrinterStateReason} objects to an existing
66 * PrinterStateReasons object and remove them again. However, like class
67 * {@link java.util.HashMap java.util.HashMap}, class PrinterStateReasons is
68 * not multiple thread safe. If a PrinterStateReasons object will be used by
69 * multiple threads, be sure to synchronize its operations (e.g., using a
70 * synchronized map view obtained from class {@link java.util.Collections
71 * java.util.Collections}).
72 * <P>
73 * <B>IPP Compatibility:</B> The string values returned by each individual
74 * {@link PrinterStateReason PrinterStateReason} object's and the associated
75 * {@link Severity Severity} object's <CODE>toString()</CODE> methods,
76 * concatenated
77 * together with a hyphen (<CODE>"-"</CODE>) in between, gives the IPP keyword
78 * value. The category name returned by <CODE>getName()</CODE> gives the IPP
79 * attribute name.
80 * <P>
81 *
82 * @author Alan Kaminsky
83 */
84 public final class PrinterStateReasons
85 extends HashMap<PrinterStateReason,Severity>
86 implements PrintServiceAttribute
87 {
88
89 private static final long serialVersionUID = -3731791085163619457L;
90
91 /**
92 * Construct a new, empty printer state reasons attribute; the underlying
93 * hash map has the default initial capacity and load factor.
94 */
95 public PrinterStateReasons() {
96 super();
97 }
98
99 /**
100 * super a new, empty printer state reasons attribute; the underlying
|
60 * {@link PrinterStateReason PrinterStateReason} object (key) mapping to a
61 * {@link Severity Severity} object (value):
62 * <P>
63 * Unlike most printing attributes which are immutable once constructed, class
64 * PrinterStateReasons is designed to be mutable; you can add {@link
65 * PrinterStateReason PrinterStateReason} objects to an existing
66 * PrinterStateReasons object and remove them again. However, like class
67 * {@link java.util.HashMap java.util.HashMap}, class PrinterStateReasons is
68 * not multiple thread safe. If a PrinterStateReasons object will be used by
69 * multiple threads, be sure to synchronize its operations (e.g., using a
70 * synchronized map view obtained from class {@link java.util.Collections
71 * java.util.Collections}).
72 * <P>
73 * <B>IPP Compatibility:</B> The string values returned by each individual
74 * {@link PrinterStateReason PrinterStateReason} object's and the associated
75 * {@link Severity Severity} object's <CODE>toString()</CODE> methods,
76 * concatenated
77 * together with a hyphen (<CODE>"-"</CODE>) in between, gives the IPP keyword
78 * value. The category name returned by <CODE>getName()</CODE> gives the IPP
79 * attribute name.
80 *
81 * @author Alan Kaminsky
82 */
83 public final class PrinterStateReasons
84 extends HashMap<PrinterStateReason,Severity>
85 implements PrintServiceAttribute
86 {
87
88 private static final long serialVersionUID = -3731791085163619457L;
89
90 /**
91 * Construct a new, empty printer state reasons attribute; the underlying
92 * hash map has the default initial capacity and load factor.
93 */
94 public PrinterStateReasons() {
95 super();
96 }
97
98 /**
99 * super a new, empty printer state reasons attribute; the underlying
|