3ea135bb |
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 |
19 | package de.lohndirekt.print.attribute.ipp.printerdesc.supported;\r |
20 | \r |
21 | import javax.print.attribute.EnumSyntax;\r |
22 | import javax.print.attribute.SupportedValuesAttribute;\r |
23 | \r |
24 | \r |
25 | public class MultipleDocumentJobsSupported extends EnumSyntax implements SupportedValuesAttribute {\r |
26 | \r |
27 | public final static MultipleDocumentJobsSupported NOT_SUPPORTED = new MultipleDocumentJobsSupported(0);\r |
28 | public final static MultipleDocumentJobsSupported SUPPORTED = new MultipleDocumentJobsSupported(1);\r |
29 | \r |
30 | \r |
31 | /**\r |
32 | *\r |
33 | */\r |
34 | \r |
35 | protected EnumSyntax[] getEnumValueTable() {\r |
36 | return new EnumSyntax[]{\r |
37 | NOT_SUPPORTED,\r |
38 | SUPPORTED\r |
39 | };\r |
40 | }\r |
41 | \r |
42 | /**\r |
43 | *\r |
44 | */\r |
45 | \r |
46 | protected int getOffset() {\r |
47 | return 0;\r |
48 | }\r |
49 | \r |
50 | /**\r |
51 | *\r |
52 | */\r |
53 | \r |
54 | protected String[] getStringTable() {\r |
55 | return new String[]{\r |
56 | "not supported",\r |
57 | "supported"\r |
58 | };\r |
59 | }\r |
60 | \r |
61 | /**\r |
62 | * @param value\r |
63 | */\r |
64 | public MultipleDocumentJobsSupported(int value) {\r |
65 | super(value);\r |
66 | }\r |
67 | \r |
68 | /**\r |
69 | *\r |
70 | */\r |
71 | \r |
72 | public Class getCategory() {\r |
73 | return this.getClass();\r |
74 | }\r |
75 | \r |
76 | /**\r |
77 | *\r |
78 | */\r |
79 | \r |
80 | public String getName() {\r |
81 | return MultipleDocumentJobsSupported.getIppName();\r |
82 | }\r |
83 | \r |
84 | /**\r |
85 | * @return\r |
86 | */\r |
87 | public static String getIppName() {\r |
88 | return "multiple-document-jobs-supported";\r |
89 | }\r |
90 | \r |
91 | }\r |