93 *
94 * <LI>
95 * SEPARATE_DOCUMENTS_UNCOLLATED_COPIES -- The input docs will remain separate.
96 * For input doc <I>i,</I> each media sheet will consist of <I>n<SUB>i</SUB></I>
97 * impressions from the input doc. Since the input docs are separate, the first
98 * impression of each input doc will always start on a new media sheet; this
99 * means the last media sheet of an input doc may have only one impression on
100 * it.
101 *
102 * <LI>
103 * SEPARATE_DOCUMENTS_COLLATED_COPIES -- The input docs will remain separate.
104 * For input doc <I>i,</I> each media sheet will consist of <I>n<SUB>i</SUB></I>
105 * impressions from the input doc. Since the input docs are separate, the first
106 * impression of each input doc will always start on a new media sheet; this
107 * means the last media sheet of an input doc may have only one impression on
108 * it.
109 * </UL>
110 * </UL>
111 * <P>
112 * <B>IPP Compatibility:</B> The category name returned by
113 * <CODE>getName()</CODE> is the IPP attribute name. The enumeration's
114 * integer value is the IPP enum value. The <code>toString()</code> method
115 * returns the IPP string representation of the attribute value.
116 *
117 * @author Alan Kaminsky
118 */
119
120 public final class Sides extends EnumSyntax
121 implements DocAttribute, PrintRequestAttribute, PrintJobAttribute {
122
123 private static final long serialVersionUID = -6890309414893262822L;
124
125 /**
126 * Imposes each consecutive print-stream page upon the same side of
127 * consecutive media sheets.
128 */
129 public static final Sides ONE_SIDED = new Sides(0);
130
131 /**
132 * Imposes each consecutive pair of print-stream pages upon front and back
133 * sides of consecutive media sheets, such that the orientation of each
134 * pair of print-stream pages on the medium would be correct for the
193 return myEnumValueTable;
194 }
195
196 /**
197 * Get the printing attribute class which is to be used as the "category"
198 * for this printing attribute value.
199 * <P>
200 * For class Sides, the category is class Sides itself.
201 *
202 * @return Printing attribute class (category), an instance of class
203 * {@link java.lang.Class java.lang.Class}.
204 */
205 public final Class<? extends Attribute> getCategory() {
206 return Sides.class;
207 }
208
209 /**
210 * Get the name of the category of which this attribute value is an
211 * instance.
212 * <P>
213 * For class Sides, the category name is <CODE>"sides"</CODE>.
214 *
215 * @return Attribute category name.
216 */
217 public final String getName() {
218 return "sides";
219 }
220
221 }
|
93 *
94 * <LI>
95 * SEPARATE_DOCUMENTS_UNCOLLATED_COPIES -- The input docs will remain separate.
96 * For input doc <I>i,</I> each media sheet will consist of <I>n<SUB>i</SUB></I>
97 * impressions from the input doc. Since the input docs are separate, the first
98 * impression of each input doc will always start on a new media sheet; this
99 * means the last media sheet of an input doc may have only one impression on
100 * it.
101 *
102 * <LI>
103 * SEPARATE_DOCUMENTS_COLLATED_COPIES -- The input docs will remain separate.
104 * For input doc <I>i,</I> each media sheet will consist of <I>n<SUB>i</SUB></I>
105 * impressions from the input doc. Since the input docs are separate, the first
106 * impression of each input doc will always start on a new media sheet; this
107 * means the last media sheet of an input doc may have only one impression on
108 * it.
109 * </UL>
110 * </UL>
111 * <P>
112 * <B>IPP Compatibility:</B> The category name returned by
113 * {@code getName()} is the IPP attribute name. The enumeration's
114 * integer value is the IPP enum value. The {@code toString()} method
115 * returns the IPP string representation of the attribute value.
116 *
117 * @author Alan Kaminsky
118 */
119
120 public final class Sides extends EnumSyntax
121 implements DocAttribute, PrintRequestAttribute, PrintJobAttribute {
122
123 private static final long serialVersionUID = -6890309414893262822L;
124
125 /**
126 * Imposes each consecutive print-stream page upon the same side of
127 * consecutive media sheets.
128 */
129 public static final Sides ONE_SIDED = new Sides(0);
130
131 /**
132 * Imposes each consecutive pair of print-stream pages upon front and back
133 * sides of consecutive media sheets, such that the orientation of each
134 * pair of print-stream pages on the medium would be correct for the
193 return myEnumValueTable;
194 }
195
196 /**
197 * Get the printing attribute class which is to be used as the "category"
198 * for this printing attribute value.
199 * <P>
200 * For class Sides, the category is class Sides itself.
201 *
202 * @return Printing attribute class (category), an instance of class
203 * {@link java.lang.Class java.lang.Class}.
204 */
205 public final Class<? extends Attribute> getCategory() {
206 return Sides.class;
207 }
208
209 /**
210 * Get the name of the category of which this attribute value is an
211 * instance.
212 * <P>
213 * For class Sides, the category name is {@code "sides"}.
214 *
215 * @return Attribute category name.
216 */
217 public final String getName() {
218 return "sides";
219 }
220
221 }
|