001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017:
018: package javax.print.attribute.standard;
019:
020: import javax.print.attribute.Attribute;
021: import javax.print.attribute.EnumSyntax;
022:
023: public class PrinterStateReason extends EnumSyntax implements Attribute {
024: private static final long serialVersionUID = -1623720656201472593L;
025:
026: public static final PrinterStateReason OTHER = new PrinterStateReason(
027: 0);
028:
029: public static final PrinterStateReason MEDIA_NEEDED = new PrinterStateReason(
030: 1);
031:
032: public static final PrinterStateReason MEDIA_JAM = new PrinterStateReason(
033: 2);
034:
035: public static final PrinterStateReason MOVING_TO_PAUSED = new PrinterStateReason(
036: 3);
037:
038: public static final PrinterStateReason PAUSED = new PrinterStateReason(
039: 4);
040:
041: public static final PrinterStateReason SHUTDOWN = new PrinterStateReason(
042: 5);
043:
044: public static final PrinterStateReason CONNECTING_TO_DEVICE = new PrinterStateReason(
045: 6);
046:
047: public static final PrinterStateReason TIMED_OUT = new PrinterStateReason(
048: 7);
049:
050: public static final PrinterStateReason STOPPING = new PrinterStateReason(
051: 8);
052:
053: public static final PrinterStateReason STOPPED_PARTLY = new PrinterStateReason(
054: 9);
055:
056: public static final PrinterStateReason TONER_LOW = new PrinterStateReason(
057: 10);
058:
059: public static final PrinterStateReason TONER_EMPTY = new PrinterStateReason(
060: 11);
061:
062: public static final PrinterStateReason SPOOL_AREA_FULL = new PrinterStateReason(
063: 12);
064:
065: public static final PrinterStateReason COVER_OPEN = new PrinterStateReason(
066: 13);
067:
068: public static final PrinterStateReason INTERLOCK_OPEN = new PrinterStateReason(
069: 14);
070:
071: public static final PrinterStateReason DOOR_OPEN = new PrinterStateReason(
072: 15);
073:
074: public static final PrinterStateReason INPUT_TRAY_MISSING = new PrinterStateReason(
075: 16);
076:
077: public static final PrinterStateReason MEDIA_LOW = new PrinterStateReason(
078: 17);
079:
080: public static final PrinterStateReason MEDIA_EMPTY = new PrinterStateReason(
081: 18);
082:
083: public static final PrinterStateReason OUTPUT_TRAY_MISSING = new PrinterStateReason(
084: 19);
085:
086: public static final PrinterStateReason OUTPUT_AREA_ALMOST_FULL = new PrinterStateReason(
087: 20);
088:
089: public static final PrinterStateReason OUTPUT_AREA_FULL = new PrinterStateReason(
090: 21);
091:
092: public static final PrinterStateReason MARKER_SUPPLY_LOW = new PrinterStateReason(
093: 22);
094:
095: public static final PrinterStateReason MARKER_SUPPLY_EMPTY = new PrinterStateReason(
096: 23);
097:
098: public static final PrinterStateReason MARKER_WASTE_ALMOST_FULL = new PrinterStateReason(
099: 24);
100:
101: public static final PrinterStateReason MARKER_WASTE_FULL = new PrinterStateReason(
102: 25);
103:
104: public static final PrinterStateReason FUSER_OVER_TEMP = new PrinterStateReason(
105: 26);
106:
107: public static final PrinterStateReason FUSER_UNDER_TEMP = new PrinterStateReason(
108: 27);
109:
110: public static final PrinterStateReason OPC_NEAR_EOL = new PrinterStateReason(
111: 28);
112:
113: public static final PrinterStateReason OPC_LIFE_OVER = new PrinterStateReason(
114: 29);
115:
116: public static final PrinterStateReason DEVELOPER_LOW = new PrinterStateReason(
117: 30);
118:
119: public static final PrinterStateReason DEVELOPER_EMPTY = new PrinterStateReason(
120: 31);
121:
122: public static final PrinterStateReason INTERPRETER_RESOURCE_UNAVAILABLE = new PrinterStateReason(
123: 32);
124:
125: private static final PrinterStateReason[] enumValueTable = { OTHER,
126: MEDIA_NEEDED, MEDIA_JAM, MOVING_TO_PAUSED, PAUSED,
127: SHUTDOWN, CONNECTING_TO_DEVICE, TIMED_OUT, STOPPING,
128: STOPPED_PARTLY, TONER_LOW, TONER_EMPTY, SPOOL_AREA_FULL,
129: COVER_OPEN, INTERLOCK_OPEN, DOOR_OPEN, INPUT_TRAY_MISSING,
130: MEDIA_LOW, MEDIA_EMPTY, OUTPUT_TRAY_MISSING,
131: OUTPUT_AREA_ALMOST_FULL, OUTPUT_AREA_FULL,
132: MARKER_SUPPLY_LOW, MARKER_SUPPLY_EMPTY,
133: MARKER_WASTE_ALMOST_FULL, MARKER_WASTE_FULL,
134: FUSER_OVER_TEMP, FUSER_UNDER_TEMP, OPC_NEAR_EOL,
135: OPC_LIFE_OVER, DEVELOPER_LOW, DEVELOPER_EMPTY,
136: INTERPRETER_RESOURCE_UNAVAILABLE };
137:
138: private static final String[] stringTable = { "other",
139: "media-needed", "media-jam", "moving-to-paused", "paused",
140: "shutdown", "connecting-to-device", "timed-out",
141: "stopping", "stopped-partly", "toner-low", "toner-empty",
142: "spool-area-full", "cover-open", "interlock-open",
143: "door-open", "input-tray-missing", "media-low",
144: "media-empty", "output-tray-missing",
145: "output-area-almost-full", "output-area-full",
146: "marker-supply-low", "marker-supply-empty",
147: "marker-waste-almost-full", "marker-waste-full",
148: "fuser-over-temp", "fuser-under-temp", "opc-near-eol",
149: "opc-life-over", "developer-low", "developer-empty",
150: "interpreter-resource-unavailable" };
151:
152: protected PrinterStateReason(int value) {
153: super (value);
154: }
155:
156: @Override
157: protected EnumSyntax[] getEnumValueTable() {
158: return enumValueTable.clone();
159: }
160:
161: public final Class<? extends Attribute> getCategory() {
162: return PrinterStateReason.class;
163: }
164:
165: public final String getName() {
166: return "printer-state-reason";
167: }
168:
169: @Override
170: protected String[] getStringTable() {
171: return stringTable.clone();
172: }
173: }
|