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