2 * Copyright (C) 2003 <a href="http://www.lohndirekt.de/">lohndirekt.de</a>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 package de
.lohndirekt
.print
.attribute
.ipp
.printerdesc
.supported
;
21 import javax
.print
.attribute
.EnumSyntax
;
22 import javax
.print
.attribute
.SupportedValuesAttribute
;
24 public class OperationsSupported
extends EnumSyntax
implements SupportedValuesAttribute
{
26 public static final OperationsSupported CREATE_PRINTER_SUBSCRIPTION
= new OperationsSupported(0x16);
27 public static final OperationsSupported CREATE_JOB_SUBSCRIPTION
= new OperationsSupported(0x17);
29 public static final OperationsSupported CANCEL_SUBSCRIPTION
= new OperationsSupported(0x1B);
30 public static final OperationsSupported ACTIVATE_PRINTER
= new OperationsSupported(0x28);
33 * IPP operations... as defined in section 4.4.15 in rfc 2911
35 public static final OperationsSupported PRINT_JOB
= new OperationsSupported(0x02);
36 public static final OperationsSupported PRINT_URI
= new OperationsSupported(0x03);
37 public static final OperationsSupported VALIDATE_JOB
= new OperationsSupported(0x04);
38 public static final OperationsSupported CREATE_JOB
= new OperationsSupported(0x05);
39 public static final OperationsSupported SEND_DOCUMENT
= new OperationsSupported(0x06);
40 public static final OperationsSupported SEND_URI
= new OperationsSupported(0x07);
41 public static final OperationsSupported CANCEL_JOB
= new OperationsSupported(0x08);
42 public static final OperationsSupported GET_JOB_ATTRIBUTES
= new OperationsSupported(0x09);
43 public static final OperationsSupported PAUSE_PRINTER
= new OperationsSupported(0x10);
44 public static final OperationsSupported GET_JOBS
= new OperationsSupported(0x0A);
45 public static final OperationsSupported GET_PRINTER_ATTRIBUTES
= new OperationsSupported(0x0B);
46 public static final OperationsSupported HOLD_JOB
= new OperationsSupported(0x0C);
47 public static final OperationsSupported RELEASE_JOB
= new OperationsSupported(0x0D);
48 public static final OperationsSupported RESTART_JOB
= new OperationsSupported(0x0E);
49 public static final OperationsSupported RESUME_PRINTER
= new OperationsSupported(0x11);
50 public static final OperationsSupported PURGE_JOBS
= new OperationsSupported(0x12);
53 * More standard IPP operations?
55 public static final OperationsSupported SET_PRINTER_ATTRIBUTES
= new OperationsSupported(0x13);
56 public static final OperationsSupported SET_JOB_ATTRIBUTES
= new OperationsSupported(0x14);
57 public static final OperationsSupported GET_PRINTER_SUPPORTED_VALUES
= new OperationsSupported(0x15);
58 public static final OperationsSupported GET_SUBSCRIPTION_ATTRIBUTES
= new OperationsSupported(0x18);
59 public static final OperationsSupported GET_SUBSCRIPTIONS
= new OperationsSupported(0x19);
60 public static final OperationsSupported RENEW_SUBSCRIPTION
= new OperationsSupported(0x1A);
61 public static final OperationsSupported GET_NOTIFICATIONS
= new OperationsSupported(0x1C);
62 public static final OperationsSupported SEND_NOTIFICATIONS
= new OperationsSupported(0x1D);
63 public static final OperationsSupported GET_PRINT_SUPPORT_FILES
= new OperationsSupported(0x21);
64 public static final OperationsSupported ENABLE_PRINTER
= new OperationsSupported(0x22);
65 public static final OperationsSupported DISABLE_PRINTER
= new OperationsSupported(0x23);
66 public static final OperationsSupported PAUSE_PRINTER_AFTER_CURRENT_JOB
= new OperationsSupported(0x24);
67 public static final OperationsSupported HOLD_NEW_JOBS
= new OperationsSupported(0x25);
68 public static final OperationsSupported RELEASE_HELD_NEW_JOBS
= new OperationsSupported(0x26);
69 public static final OperationsSupported DEACTIVATE_PRINTER
= new OperationsSupported(0x27);
70 public static final OperationsSupported SHUTDOWN_PRINTER
= new OperationsSupported(0x2A);
71 public static final OperationsSupported STARTUP_PRINTER
= new OperationsSupported(0x2B);
72 public static final OperationsSupported REPROCESS_JOB
= new OperationsSupported(0x2C);
73 public static final OperationsSupported CANCEL_CURRENT_JOB
= new OperationsSupported(0x2D);
74 public static final OperationsSupported SUSPEND_CURRENT_JOB
= new OperationsSupported(0x2E);
75 public static final OperationsSupported RESTART_PRINTER
= new OperationsSupported(0x29);
76 public static final OperationsSupported RESUME_JOB
= new OperationsSupported(0x2F);
77 public static final OperationsSupported PROMOTE_JOB
= new OperationsSupported(0x30);
78 public static final OperationsSupported SCHEDULE_JOB_AFTER
= new OperationsSupported(0x31);
80 //Cups-specific values
81 public static final OperationsSupported PRIVATE
= new OperationsSupported(0x4000);
82 public static final OperationsSupported CUPS_GET_DEFAULT
= new OperationsSupported(0x4001);
83 public static final OperationsSupported CUPS_GET_PRINTERS
= new OperationsSupported(0x4002);
84 public static final OperationsSupported CUPS_ADD_PRINTER
= new OperationsSupported(0x4003);
85 public static final OperationsSupported CUPS_DELETE_PRINTER
= new OperationsSupported(0x4004);
86 public static final OperationsSupported CUPS_GET_CLASSES
= new OperationsSupported(0x4005);
87 public static final OperationsSupported CUPS_ADD_CLASS
= new OperationsSupported(0x4006);
88 public static final OperationsSupported CUPS_DELETE_CLASS
= new OperationsSupported(0x4007);
89 public static final OperationsSupported CUPS_ACCEPT_JOBS
= new OperationsSupported(0x4008);
90 public static final OperationsSupported CUPS_REJECT_JOBS
= new OperationsSupported(0x4009);
91 public static final OperationsSupported CUPS_SET_DEFAULT
= new OperationsSupported(0x400A);
92 public static final OperationsSupported CUPS_GET_DEVICES
= new OperationsSupported(0x400B);
93 public static final OperationsSupported CUPS_GET_PPDS
= new OperationsSupported(0x400C);
94 public static final OperationsSupported CUPS_MOVE_JOB
= new OperationsSupported(0x400D);
95 public static final OperationsSupported CUPS_ADD_DEVICE
= new OperationsSupported(0x400E);
96 public static final OperationsSupported CUPS_DELETE_DEVICE
= new OperationsSupported(0x400F);
101 public OperationsSupported(int value
) {
109 public Class
getCategory() {
110 return this.getClass();
117 public String
getName() {
118 return OperationsSupported
.getIppName();
121 public final static String
getIppName() {
122 return "operations-supported";