1 7 package javax.print.attribute.standard; 8 9 import javax.print.attribute.EnumSyntax ; 10 import javax.print.attribute.Attribute ; 11 12 50 public class PrinterStateReason extends EnumSyntax implements Attribute { 51 52 private static final long serialVersionUID = -1623720656201472593L; 53 54 57 public static final PrinterStateReason OTHER = new PrinterStateReason (0); 58 59 62 public static final PrinterStateReason 63 MEDIA_NEEDED = new PrinterStateReason (1); 64 65 68 public static final PrinterStateReason 69 MEDIA_JAM = new PrinterStateReason (2); 70 71 81 public static final PrinterStateReason 82 MOVING_TO_PAUSED = new PrinterStateReason (3); 83 84 94 public static final PrinterStateReason 95 PAUSED = new PrinterStateReason (4); 96 97 111 public static final PrinterStateReason 112 SHUTDOWN = new PrinterStateReason (5); 113 114 121 public static final PrinterStateReason 122 CONNECTING_TO_DEVICE = new PrinterStateReason (6); 123 124 128 public static final PrinterStateReason 129 TIMED_OUT = new PrinterStateReason (7); 130 131 141 public static final PrinterStateReason 142 STOPPING = new PrinterStateReason (8); 143 144 152 public static final PrinterStateReason 153 STOPPED_PARTLY = new PrinterStateReason (9); 154 155 158 public static final PrinterStateReason 159 TONER_LOW = new PrinterStateReason (10); 160 161 164 public static final PrinterStateReason 165 TONER_EMPTY = new PrinterStateReason (11); 166 167 176 public static final PrinterStateReason 177 SPOOL_AREA_FULL = new PrinterStateReason (12); 178 179 182 public static final PrinterStateReason 183 COVER_OPEN = new PrinterStateReason (13); 184 185 188 public static final PrinterStateReason 189 INTERLOCK_OPEN = new PrinterStateReason (14); 190 191 194 public static final PrinterStateReason 195 DOOR_OPEN = new PrinterStateReason (15); 196 197 200 public static final PrinterStateReason 201 INPUT_TRAY_MISSING = new PrinterStateReason (16); 202 203 206 public static final PrinterStateReason 207 MEDIA_LOW = new PrinterStateReason (17); 208 209 212 public static final PrinterStateReason 213 MEDIA_EMPTY = new PrinterStateReason (18); 214 215 218 public static final PrinterStateReason 219 OUTPUT_TRAY_MISSING = new PrinterStateReason (19); 220 221 225 public static final PrinterStateReason 226 OUTPUT_AREA_ALMOST_FULL = new PrinterStateReason (20); 227 228 231 public static final PrinterStateReason 232 OUTPUT_AREA_FULL = new PrinterStateReason (21); 233 234 238 public static final PrinterStateReason 239 MARKER_SUPPLY_LOW = new PrinterStateReason (22); 240 241 245 public static final PrinterStateReason 246 MARKER_SUPPLY_EMPTY = new PrinterStateReason (23); 247 248 251 public static final PrinterStateReason 252 MARKER_WASTE_ALMOST_FULL = new PrinterStateReason (24); 253 254 257 public static final PrinterStateReason 258 MARKER_WASTE_FULL = new PrinterStateReason (25); 259 260 263 public static final PrinterStateReason 264 FUSER_OVER_TEMP = new PrinterStateReason (26); 265 266 269 public static final PrinterStateReason 270 FUSER_UNDER_TEMP = new PrinterStateReason (27); 271 272 275 public static final PrinterStateReason 276 OPC_NEAR_EOL = new PrinterStateReason (28); 277 278 281 public static final PrinterStateReason 282 OPC_LIFE_OVER = new PrinterStateReason (29); 283 284 287 public static final PrinterStateReason 288 DEVELOPER_LOW = new PrinterStateReason (30); 289 290 293 public static final PrinterStateReason 294 DEVELOPER_EMPTY = new PrinterStateReason (31); 295 296 299 public static final PrinterStateReason 300 INTERPRETER_RESOURCE_UNAVAILABLE = new PrinterStateReason (32); 301 302 308 protected PrinterStateReason(int value) { 309 super (value); 310 } 311 312 private static final String [] myStringTable = { 313 "other", 314 "media-needed", 315 "media-jam", 316 "moving-to-paused", 317 "paused", 318 "shutdown", 319 "connecting-to-device", 320 "timed-out", 321 "stopping", 322 "stopped-partly", 323 "toner-low", 324 "toner-empty", 325 "spool-area-full", 326 "cover-open", 327 "interlock-open", 328 "door-open", 329 "input-tray-missing", 330 "media-low", 331 "media-empty", 332 "output-tray-missing", 333 "output-area-almost-full", 334 "output-area-full", 335 "marker-supply-low", 336 "marker-supply-empty", 337 "marker-waste-almost-full", 338 "marker-waste-full", 339 "fuser-over-temp", 340 "fuser-under-temp", 341 "opc-near-eol", 342 "opc-life-over", 343 "developer-low", 344 "developer-empty", 345 "interpreter-resource-unavailable" 346 }; 347 348 private static final PrinterStateReason [] myEnumValueTable = { 349 OTHER, 350 MEDIA_NEEDED, 351 MEDIA_JAM, 352 MOVING_TO_PAUSED, 353 PAUSED, 354 SHUTDOWN, 355 CONNECTING_TO_DEVICE, 356 TIMED_OUT, 357 STOPPING, 358 STOPPED_PARTLY, 359 TONER_LOW, 360 TONER_EMPTY, 361 SPOOL_AREA_FULL, 362 COVER_OPEN, 363 INTERLOCK_OPEN, 364 DOOR_OPEN, 365 INPUT_TRAY_MISSING, 366 MEDIA_LOW, 367 MEDIA_EMPTY, 368 OUTPUT_TRAY_MISSING, 369 OUTPUT_AREA_ALMOST_FULL, 370 OUTPUT_AREA_FULL, 371 MARKER_SUPPLY_LOW, 372 MARKER_SUPPLY_EMPTY, 373 MARKER_WASTE_ALMOST_FULL, 374 MARKER_WASTE_FULL, 375 FUSER_OVER_TEMP, 376 FUSER_UNDER_TEMP, 377 OPC_NEAR_EOL, 378 OPC_LIFE_OVER, 379 DEVELOPER_LOW, 380 DEVELOPER_EMPTY, 381 INTERPRETER_RESOURCE_UNAVAILABLE 382 }; 383 384 387 protected String [] getStringTable() { 388 return (String [])myStringTable.clone(); 389 } 390 391 394 protected EnumSyntax [] getEnumValueTable() { 395 return (EnumSyntax [])myEnumValueTable.clone(); 396 } 397 398 399 409 public final Class <? extends Attribute > getCategory() { 410 return PrinterStateReason .class; 411 } 412 413 422 public final String getName() { 423 return "printer-state-reason"; 424 } 425 426 } 427 | Popular Tags |