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.jobtempl;\r |
20 | \r |
21 | import java.util.Locale;\r |
22 | \r |
23 | import javax.print.attribute.PrintJobAttribute;\r |
24 | import javax.print.attribute.PrintRequestAttribute;\r |
25 | import javax.print.attribute.TextSyntax;\r |
26 | \r |
27 | /**\r |
28 | * The job-hold-until attribute specifies a hold time. \r |
29 | * In addition to the standard IPP/1.1 keyword names, \r |
30 | * CUPS supports name values of the form "HH:MM" and "HH:MM:SS" \r |
31 | * that specify a hold time.<br> \r |
32 | * The hold time is in Greenwich Mean Time (GMT) and not in the \r |
33 | * local time zone. If the specified time is less than the \r |
34 | * current time, the job is held until the next day.\r |
35 | *\r |
36 | * @author bpusch\r |
37 | */\r |
38 | public class LdJobHoldUntil extends TextSyntax implements PrintRequestAttribute, PrintJobAttribute {\r |
39 | \r |
40 | public final static LdJobHoldUntil NO_HOLD = new LdJobHoldUntil("no-hold",Locale.getDefault());\r |
41 | public final static LdJobHoldUntil INDEFINITE = new LdJobHoldUntil("indefinite",Locale.getDefault());\r |
42 | public final static LdJobHoldUntil DAY_TIME = new LdJobHoldUntil("day-time",Locale.getDefault());\r |
43 | public final static LdJobHoldUntil EVENING = new LdJobHoldUntil("evening",Locale.getDefault());\r |
44 | public final static LdJobHoldUntil NIGHT = new LdJobHoldUntil("night",Locale.getDefault());\r |
45 | public final static LdJobHoldUntil WEEKEND = new LdJobHoldUntil("weekend",Locale.getDefault());\r |
46 | public final static LdJobHoldUntil SECOND_SHIFT = new LdJobHoldUntil("second-shift",Locale.getDefault());\r |
47 | public final static LdJobHoldUntil THIRD_SHIFT = new LdJobHoldUntil("third-shift",Locale.getDefault());\r |
48 | \r |
49 | /**\r |
50 | * @param value\r |
51 | * @param locale\r |
52 | */\r |
53 | public LdJobHoldUntil(String value, Locale locale) {\r |
54 | super(value, locale);\r |
55 | }\r |
56 | \r |
57 | public Class getCategory() {\r |
58 | return LdJobHoldUntil.class;\r |
59 | }\r |
60 | \r |
61 | public String getName() {\r |
62 | return LdJobHoldUntil.getIppName();\r |
63 | }\r |
64 | \r |
65 | \r |
66 | public final static String getIppName() {\r |
67 | return "job-hold-until";\r |
68 | }\r |
69 | \r |
70 | }\r |