1 /*
2 * Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
48 * <P>
49 * As with {@link JobKOctets JobKOctets}, the JobImpressions value must not
50 * include the multiplicative factors contributed by the number of copies
51 * specified by the {@link Copies Copies} attribute, independent of whether the
52 * device can process multiple copies without making multiple passes over the
53 * job or document data and independent of whether the output is collated or
54 * not. Thus the value is independent of the implementation and reflects the
55 * size of the document(s) measured in impressions independent of the number of
56 * copies.
57 * <P>
58 * As with {@link JobKOctets JobKOctets}, the JobImpressions value must also not
59 * include the multiplicative factor due to a copies instruction embedded in the
60 * document data. If the document data actually includes replications of the
61 * document data, this value will include such replication. In other words, this
62 * value is always the number of impressions in the source document data, rather
63 * than a measure of the number of impressions to be produced by the job.
64 * <P>
65 * <B>IPP Compatibility:</B> The integer value gives the IPP integer value. The
66 * category name returned by <CODE>getName()</CODE> gives the IPP attribute
67 * name.
68 * <P>
69 *
70 * @see JobImpressionsSupported
71 * @see JobImpressionsCompleted
72 * @see JobKOctets
73 * @see JobMediaSheets
74 *
75 * @author Alan Kaminsky
76 */
77 public final class JobImpressions extends IntegerSyntax
78 implements PrintRequestAttribute, PrintJobAttribute {
79
80 private static final long serialVersionUID = 8225537206784322464L;
81
82
83 /**
84 * Construct a new job impressions attribute with the given integer value.
85 *
86 * @param value Integer value.
87 *
88 * @exception IllegalArgumentException
|
1 /*
2 * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
48 * <P>
49 * As with {@link JobKOctets JobKOctets}, the JobImpressions value must not
50 * include the multiplicative factors contributed by the number of copies
51 * specified by the {@link Copies Copies} attribute, independent of whether the
52 * device can process multiple copies without making multiple passes over the
53 * job or document data and independent of whether the output is collated or
54 * not. Thus the value is independent of the implementation and reflects the
55 * size of the document(s) measured in impressions independent of the number of
56 * copies.
57 * <P>
58 * As with {@link JobKOctets JobKOctets}, the JobImpressions value must also not
59 * include the multiplicative factor due to a copies instruction embedded in the
60 * document data. If the document data actually includes replications of the
61 * document data, this value will include such replication. In other words, this
62 * value is always the number of impressions in the source document data, rather
63 * than a measure of the number of impressions to be produced by the job.
64 * <P>
65 * <B>IPP Compatibility:</B> The integer value gives the IPP integer value. The
66 * category name returned by <CODE>getName()</CODE> gives the IPP attribute
67 * name.
68 *
69 * @see JobImpressionsSupported
70 * @see JobImpressionsCompleted
71 * @see JobKOctets
72 * @see JobMediaSheets
73 *
74 * @author Alan Kaminsky
75 */
76 public final class JobImpressions extends IntegerSyntax
77 implements PrintRequestAttribute, PrintJobAttribute {
78
79 private static final long serialVersionUID = 8225537206784322464L;
80
81
82 /**
83 * Construct a new job impressions attribute with the given integer value.
84 *
85 * @param value Integer value.
86 *
87 * @exception IllegalArgumentException
|