1 7 package javax.print.attribute.standard; 8 9 import javax.print.attribute.EnumSyntax ; 10 import javax.print.attribute.Attribute ; 11 12 40 public class JobStateReason extends EnumSyntax implements Attribute { 41 42 private static final long serialVersionUID = -8765894420449009168L; 43 44 48 public static final JobStateReason 49 JOB_INCOMING = new JobStateReason (0); 50 51 60 public static final JobStateReason 61 JOB_DATA_INSUFFICIENT = new JobStateReason (1); 62 63 76 public static final JobStateReason 77 DOCUMENT_ACCESS_ERROR = new JobStateReason (2); 78 79 87 public static final JobStateReason 88 SUBMISSION_INTERRUPTED = new JobStateReason (3); 89 90 93 public static final JobStateReason 94 JOB_OUTGOING = new JobStateReason (4); 95 96 104 public static final JobStateReason 105 JOB_HOLD_UNTIL_SPECIFIED = new JobStateReason (5); 106 107 117 public static final JobStateReason 118 RESOURCES_ARE_NOT_READY = new JobStateReason (6); 119 120 125 public static final JobStateReason 126 PRINTER_STOPPED_PARTLY = new JobStateReason (7); 127 128 132 public static final JobStateReason 133 PRINTER_STOPPED = new JobStateReason (8); 134 135 139 public static final JobStateReason 140 JOB_INTERPRETING = new JobStateReason (9); 141 142 146 public static final JobStateReason JOB_QUEUED = new JobStateReason (10); 147 148 153 public static final JobStateReason 154 JOB_TRANSFORMING = new JobStateReason (11); 155 156 167 public static final JobStateReason 168 JOB_QUEUED_FOR_MARKER = new JobStateReason (12); 169 170 178 public static final JobStateReason 179 JOB_PRINTING = new JobStateReason (13); 180 181 188 public static final JobStateReason 189 JOB_CANCELED_BY_USER = new JobStateReason (14); 190 191 201 public static final JobStateReason 202 JOB_CANCELED_BY_OPERATOR = new JobStateReason (15); 203 204 209 public static final JobStateReason 210 JOB_CANCELED_AT_DEVICE = new JobStateReason (16); 211 212 219 public static final JobStateReason 220 ABORTED_BY_SYSTEM = new JobStateReason (17); 221 222 229 public static final JobStateReason 230 UNSUPPORTED_COMPRESSION = new JobStateReason (18); 231 232 238 public static final JobStateReason 239 COMPRESSION_ERROR = new JobStateReason (19); 240 241 251 public static final JobStateReason 252 UNSUPPORTED_DOCUMENT_FORMAT = new JobStateReason (20); 253 254 260 public static final JobStateReason 261 DOCUMENT_FORMAT_ERROR = new JobStateReason (21); 262 263 276 public static final JobStateReason 277 PROCESSING_TO_STOP_POINT = new JobStateReason (22); 278 279 284 public static final JobStateReason 285 SERVICE_OFF_LINE = new JobStateReason (23); 286 287 290 public static final JobStateReason 291 JOB_COMPLETED_SUCCESSFULLY = new JobStateReason (24); 292 293 297 public static final JobStateReason 298 JOB_COMPLETED_WITH_WARNINGS = new JobStateReason (25); 299 300 304 public static final JobStateReason 305 JOB_COMPLETED_WITH_ERRORS = new JobStateReason (26); 306 307 315 public static final JobStateReason 316 JOB_RESTARTABLE = new JobStateReason (27); 317 318 326 public static final JobStateReason 327 QUEUED_IN_DEVICE = new JobStateReason (28); 328 329 335 protected JobStateReason(int value) { 336 super (value); 337 } 338 339 private static final String [] myStringTable = { 340 "job-incoming", 341 "job-data-insufficient", 342 "document-access-error", 343 "submission-interrupted", 344 "job-outgoing", 345 "job-hold-until-specified", 346 "resources-are-not-ready", 347 "printer-stopped-partly", 348 "printer-stopped", 349 "job-interpreting", 350 "job-queued", 351 "job-transforming", 352 "job-queued-for-marker", 353 "job-printing", 354 "job-canceled-by-user", 355 "job-canceled-by-operator", 356 "job-canceled-at-device", 357 "aborted-by-system", 358 "unsupported-compression", 359 "compression-error", 360 "unsupported-document-format", 361 "document-format-error", 362 "processing-to-stop-point", 363 "service-off-line", 364 "job-completed-successfully", 365 "job-completed-with-warnings", 366 "job-completed-with-errors", 367 "job-restartable", 368 "queued-in-device"}; 369 370 private static final JobStateReason [] myEnumValueTable = { 371 JOB_INCOMING, 372 JOB_DATA_INSUFFICIENT, 373 DOCUMENT_ACCESS_ERROR, 374 SUBMISSION_INTERRUPTED, 375 JOB_OUTGOING, 376 JOB_HOLD_UNTIL_SPECIFIED, 377 RESOURCES_ARE_NOT_READY, 378 PRINTER_STOPPED_PARTLY, 379 PRINTER_STOPPED, 380 JOB_INTERPRETING, 381 JOB_QUEUED, 382 JOB_TRANSFORMING, 383 JOB_QUEUED_FOR_MARKER, 384 JOB_PRINTING, 385 JOB_CANCELED_BY_USER, 386 JOB_CANCELED_BY_OPERATOR, 387 JOB_CANCELED_AT_DEVICE, 388 ABORTED_BY_SYSTEM, 389 UNSUPPORTED_COMPRESSION, 390 COMPRESSION_ERROR, 391 UNSUPPORTED_DOCUMENT_FORMAT, 392 DOCUMENT_FORMAT_ERROR, 393 PROCESSING_TO_STOP_POINT, 394 SERVICE_OFF_LINE, 395 JOB_COMPLETED_SUCCESSFULLY, 396 JOB_COMPLETED_WITH_WARNINGS, 397 JOB_COMPLETED_WITH_ERRORS, 398 JOB_RESTARTABLE, 399 QUEUED_IN_DEVICE}; 400 401 404 protected String [] getStringTable() { 405 return (String [])myStringTable.clone(); 406 } 407 408 411 protected EnumSyntax [] getEnumValueTable() { 412 return (EnumSyntax [])myEnumValueTable.clone(); 413 } 414 415 416 426 public final Class <? extends Attribute > getCategory() { 427 return JobStateReason .class; 428 } 429 430 439 public final String getName() { 440 return "job-state-reason"; 441 } 442 443 } 444 | Popular Tags |