jdk/src/share/classes/javax/print/attribute/standard/PrinterStateReason.java
author malenkov
Tue, 29 Oct 2013 17:01:06 +0400
changeset 21278 ef8a3a2a72f2
parent 5506 202f599c92aa
child 22584 eed64ee05369
permissions -rw-r--r--
8022746: List of spelling errors in API doc Reviewed-by: alexsch, smarks
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     2
 * Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
package javax.print.attribute.standard;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
import javax.print.attribute.EnumSyntax;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import javax.print.attribute.Attribute;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
 * Class PrinterStateReason is a printing attribute class, an enumeration,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
 * that provides additional information about the printer's current state,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
 * i.e., information that augments the value of the printer's
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 * {@link PrinterState PrinterState} attribute.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * Class PrinterStateReason defines standard printer
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * state reason values. A Print Service implementation only needs to report
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * those printer state reasons which are appropriate for the particular
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 * implementation; it does not have to report every defined printer state
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * reason.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * Instances of PrinterStateReason do not appear in a Print Service's
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 * attribute set directly.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
 * Rather, a {@link PrinterStateReasons PrinterStateReasons}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 * attribute appears in the Print Service's attribute set. The {@link
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 * PrinterStateReasons PrinterStateReasons} attribute contains zero, one, or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 * more than one PrinterStateReason objects which pertain to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 * Print Service's status, and each PrinterStateReason object is
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 * associated with a {@link Severity Severity} level of REPORT (least severe),
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 * WARNING, or ERROR (most severe). The printer adds a PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
 * object to the Print Service's
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
 * {@link PrinterStateReasons PrinterStateReasons} attribute when the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
 * corresponding condition becomes true of the printer, and the printer
21278
ef8a3a2a72f2 8022746: List of spelling errors in API doc
malenkov
parents: 5506
diff changeset
    53
 * removes the PrinterStateReason object again when the corresponding
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 * condition becomes false, regardless of whether the Print Service's overall
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
 * {@link PrinterState PrinterState} also changed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
 * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
 * <B>IPP Compatibility:</B>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
 * The string values returned by each individual {@link PrinterStateReason} and
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
 * associated {@link Severity} object's <CODE>toString()</CODE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
 * methods, concatenated together with a hyphen (<CODE>"-"</CODE>) in
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
 * between, gives the IPP keyword value for a {@link PrinterStateReasons}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
 * The category name returned by <CODE>getName()</CODE> gives the IPP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
 * attribute name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
 * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
 * @author  Alan Kaminsky
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
public class PrinterStateReason extends EnumSyntax implements Attribute {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
    private static final long serialVersionUID = -1623720656201472593L;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
     * The printer has detected an error other than ones listed below.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
    public static final PrinterStateReason OTHER = new PrinterStateReason(0);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
     * A tray has run out of media.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
        MEDIA_NEEDED = new PrinterStateReason(1);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
     * The device has a media jam.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
        MEDIA_JAM = new PrinterStateReason(2);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
     * Someone has paused the printer, but the device(s) are taking an
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
     * appreciable time to stop. Later, when all output has stopped,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
     * the {@link  PrinterState PrinterState} becomes STOPPED,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
     * and the PAUSED value replaces
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
     * the MOVING_TO_PAUSED value in the {@link PrinterStateReasons
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
     * PrinterStateReasons} attribute. This value must be supported if the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
     * printer can be paused and the implementation takes significant time to
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
     * pause a device in certain circumstances.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
        MOVING_TO_PAUSED = new PrinterStateReason(3);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
     * Someone has paused the printer and the printer's {@link PrinterState
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
     * PrinterState} is STOPPED. In this state, a printer must not produce
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
     * printed output, but it must perform other operations requested by a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
     * client. If a printer had been printing a job when the printer was
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
     * paused,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
     * the Printer must resume printing that job when the printer is no longer
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
     * paused and leave no evidence in the printed output of such a pause.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
     * This value must be supported if the printer can be paused.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
        PAUSED = new PrinterStateReason(4);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
     * Someone has removed a printer from service, and the device may be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
     * powered down or physically removed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
     * In this state, a printer must not produce
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
     * printed output, and unless the printer is realized by a print server
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
     * that is still active, the printer must perform no other operations
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
     * requested by a client.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
     * If a printer had been printing a job when it was shut down,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
     * the printer need not resume printing that job when the printer is no
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
     * longer shut down. If the printer resumes printing such a job, it may
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
     * leave evidence in the printed output of such a shutdown, e.g. the part
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
     * printed before the shutdown may be printed a second time after the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
     * shutdown.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
        SHUTDOWN = new PrinterStateReason(5);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
     * The printer has scheduled a job on the output device and is in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
     * process of connecting to a shared network output device (and might not
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
     * be able to actually start printing the job for an arbitrarily long time
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
     * depending on the usage of the output device by other servers on the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
     * network).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
        CONNECTING_TO_DEVICE = new PrinterStateReason(6);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
     * The server was able to connect to the output device (or is always
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
     * connected), but was unable to get a response from the output device.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
        TIMED_OUT = new PrinterStateReason(7);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
     * The printer is in the process of stopping the device and will be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
     * stopped in a while.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
     * When the device is stopped, the printer will change the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
     * {@link PrinterState PrinterState} to STOPPED. The STOPPING reason is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
     * never an error, even for a printer with a single output device. When an
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
     * output device ceases accepting jobs, the printer's {@link
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
     * PrinterStateReasons PrinterStateReasons} will have this reason while
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
     * the output device completes printing.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
        STOPPING = new PrinterStateReason(8);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
     * When a printer controls more than one output device, this reason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
     * indicates that one or more output devices are stopped. If the reason's
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
     * severity is a report, fewer than half of the output devices are
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
     * stopped.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
     * If the reason's severity is a warning, half or more but fewer than
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
     * all of the output devices are stopped.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
        STOPPED_PARTLY = new PrinterStateReason(9);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
     * The device is low on toner.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
        TONER_LOW = new PrinterStateReason(10);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
     * The device is out of toner.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
        TONER_EMPTY = new PrinterStateReason(11);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
     * The limit of persistent storage allocated for spooling has been
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
     * reached.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
     * The printer is temporarily unable to accept more jobs. The printer will
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
     * remove this reason when it is able to accept more jobs.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
     * This value should  be used by a non-spooling printer that only
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
     * accepts one or a small number
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
     * jobs at a time or a spooling printer that has filled the spool space.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
        SPOOL_AREA_FULL = new PrinterStateReason(12);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
     * One or more covers on the device are open.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
        COVER_OPEN = new PrinterStateReason(13);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
     * One or more interlock devices on the printer are unlocked.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
        INTERLOCK_OPEN = new PrinterStateReason(14);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
     * One or more doors on the device are open.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
        DOOR_OPEN = new PrinterStateReason(15);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
     * One or more input trays are not in the device.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
        INPUT_TRAY_MISSING = new PrinterStateReason(16);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
     * At least one input tray is low on media.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
        MEDIA_LOW = new PrinterStateReason(17);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
     * At least one input tray is empty.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
        MEDIA_EMPTY = new PrinterStateReason(18);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
     * One or more output trays are not in the device.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
        OUTPUT_TRAY_MISSING = new PrinterStateReason(19);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
     * One or more output areas are almost full
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
     * (e.g. tray, stacker, collator).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
        OUTPUT_AREA_ALMOST_FULL = new PrinterStateReason(20);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
     * One or more output areas are full (e.g. tray, stacker, collator).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
        OUTPUT_AREA_FULL = new PrinterStateReason(21);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
     * The device is low on at least one marker supply (e.g. toner, ink,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
     * ribbon).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
        MARKER_SUPPLY_LOW = new PrinterStateReason(22);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
     * The device is out of at least one marker supply (e.g. toner, ink,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
     * ribbon).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
        MARKER_SUPPLY_EMPTY = new PrinterStateReason(23);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
     * The device marker supply waste receptacle is almost full.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
        MARKER_WASTE_ALMOST_FULL = new PrinterStateReason(24);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
     * The device marker supply waste receptacle is full.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
        MARKER_WASTE_FULL = new PrinterStateReason(25);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
     * The fuser temperature is above normal.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
        FUSER_OVER_TEMP = new PrinterStateReason(26);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
     * The fuser temperature is below normal.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
        FUSER_UNDER_TEMP = new PrinterStateReason(27);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
     * The optical photo conductor is near end of life.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
        OPC_NEAR_EOL = new PrinterStateReason(28);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
     * The optical photo conductor is no longer functioning.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
        OPC_LIFE_OVER = new PrinterStateReason(29);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
     * The device is low on developer.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
        DEVELOPER_LOW = new PrinterStateReason(30);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
     * The device is out of developer.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
        DEVELOPER_EMPTY = new PrinterStateReason(31);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
     * An interpreter resource is unavailable (e.g., font, form).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
    public static final PrinterStateReason
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
        INTERPRETER_RESOURCE_UNAVAILABLE = new PrinterStateReason(32);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
     * Construct a new printer state reason enumeration value with
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
     * the given integer value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
     * @param  value  Integer value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
    protected PrinterStateReason(int value) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
        super (value);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
    private static final String[] myStringTable = {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
        "other",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
        "media-needed",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
        "media-jam",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
        "moving-to-paused",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
        "paused",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
        "shutdown",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
        "connecting-to-device",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
        "timed-out",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
        "stopping",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
        "stopped-partly",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
        "toner-low",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
        "toner-empty",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
        "spool-area-full",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
        "cover-open",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
        "interlock-open",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
        "door-open",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
        "input-tray-missing",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
        "media-low",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
        "media-empty",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
        "output-tray-missing",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
        "output-area-almost-full",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
        "output-area-full",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
        "marker-supply-low",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
        "marker-supply-empty",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
        "marker-waste-almost-full",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
        "marker-waste-full",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
        "fuser-over-temp",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
        "fuser-under-temp",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
        "opc-near-eol",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
        "opc-life-over",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
        "developer-low",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
        "developer-empty",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
        "interpreter-resource-unavailable"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
    };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
    private static final PrinterStateReason[] myEnumValueTable = {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
        OTHER,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
        MEDIA_NEEDED,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
        MEDIA_JAM,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
        MOVING_TO_PAUSED,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
        PAUSED,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
        SHUTDOWN,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
        CONNECTING_TO_DEVICE,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
        TIMED_OUT,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
        STOPPING,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
        STOPPED_PARTLY,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
        TONER_LOW,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
        TONER_EMPTY,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
        SPOOL_AREA_FULL,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
        COVER_OPEN,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
        INTERLOCK_OPEN,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
        DOOR_OPEN,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
        INPUT_TRAY_MISSING,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
        MEDIA_LOW,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
        MEDIA_EMPTY,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
        OUTPUT_TRAY_MISSING,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
        OUTPUT_AREA_ALMOST_FULL,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
        OUTPUT_AREA_FULL,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
        MARKER_SUPPLY_LOW,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
        MARKER_SUPPLY_EMPTY,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
        MARKER_WASTE_ALMOST_FULL,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
        MARKER_WASTE_FULL,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
        FUSER_OVER_TEMP,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
        FUSER_UNDER_TEMP,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
        OPC_NEAR_EOL,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
        OPC_LIFE_OVER,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
        DEVELOPER_LOW,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
        DEVELOPER_EMPTY,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
        INTERPRETER_RESOURCE_UNAVAILABLE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
    };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
     * Returns the string table for class PrinterStateReason.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
    protected String[] getStringTable() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
        return (String[])myStringTable.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
     * Returns the enumeration value table for class PrinterStateReason.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
    protected EnumSyntax[] getEnumValueTable() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
        return (EnumSyntax[])myEnumValueTable.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
     * Get the printing attribute class which is to be used as the "category"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
     * for this printing attribute value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
     * For class PrinterStateReason and any vendor-defined subclasses, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
     * category is class PrinterStateReason itself.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
     * @return  Printing attribute class (category), an instance of class
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
     *          {@link java.lang.Class java.lang.Class}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
    public final Class<? extends Attribute> getCategory() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
        return PrinterStateReason.class;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
     * Get the name of the category of which this attribute value is an
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
     * instance.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
     * For class PrinterStateReason and any vendor-defined subclasses, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
     * category name is <CODE>"printer-state-reason"</CODE>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
     * @return  Attribute category name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
    public final String getName() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
        return "printer-state-reason";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
}