Initial import.
[clinton/mirror/jspi/.git] / jspi / src / main / java / de / lohndirekt / print / attribute / ipp / jobtempl / LdJobHoldUntil.java
diff --git a/jspi/src/main/java/de/lohndirekt/print/attribute/ipp/jobtempl/LdJobHoldUntil.java b/jspi/src/main/java/de/lohndirekt/print/attribute/ipp/jobtempl/LdJobHoldUntil.java
new file mode 100644 (file)
index 0000000..3ec0fc0
--- /dev/null
@@ -0,0 +1,70 @@
+/**\r
+ * Copyright (C) 2003 <a href="http://www.lohndirekt.de/">lohndirekt.de</a>\r
+ *\r
+ * This library is free software; you can redistribute it and/or\r
+ * modify it under the terms of the GNU Lesser General Public\r
+ * License as published by the Free Software Foundation; either\r
+ * version 2.1 of the License, or (at your option) any later version.\r
+ * \r
+ * This library is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
+ * Lesser General Public License for more details.\r
+ * \r
+ * You should have received a copy of the GNU Lesser General Public\r
+ * License along with this library; if not, write to the Free Software\r
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\r
+ *  \r
+ */\r
+package de.lohndirekt.print.attribute.ipp.jobtempl;\r
+\r
+import java.util.Locale;\r
+\r
+import javax.print.attribute.PrintJobAttribute;\r
+import javax.print.attribute.PrintRequestAttribute;\r
+import javax.print.attribute.TextSyntax;\r
+\r
+/**\r
+ * The job-hold-until attribute specifies a hold time. \r
+ * In addition to the standard IPP/1.1 keyword names, \r
+ * CUPS supports name values of the form "HH:MM" and "HH:MM:SS" \r
+ * that specify a hold time.<br> \r
+ * The hold time is in Greenwich Mean Time (GMT) and not in the \r
+ * local time zone. If the specified time is less than the \r
+ * current time, the job is held until the next day.\r
+ *\r
+ * @author bpusch\r
+ */\r
+public class LdJobHoldUntil extends TextSyntax implements PrintRequestAttribute, PrintJobAttribute {\r
+    \r
+    public final static LdJobHoldUntil NO_HOLD = new LdJobHoldUntil("no-hold",Locale.getDefault());\r
+    public final static LdJobHoldUntil INDEFINITE = new LdJobHoldUntil("indefinite",Locale.getDefault());\r
+    public final static LdJobHoldUntil DAY_TIME = new LdJobHoldUntil("day-time",Locale.getDefault());\r
+    public final static LdJobHoldUntil EVENING = new LdJobHoldUntil("evening",Locale.getDefault());\r
+    public final static LdJobHoldUntil NIGHT = new LdJobHoldUntil("night",Locale.getDefault());\r
+    public final static LdJobHoldUntil WEEKEND = new LdJobHoldUntil("weekend",Locale.getDefault());\r
+    public final static LdJobHoldUntil SECOND_SHIFT = new LdJobHoldUntil("second-shift",Locale.getDefault());\r
+    public final static LdJobHoldUntil THIRD_SHIFT = new LdJobHoldUntil("third-shift",Locale.getDefault());\r
+\r
+       /**\r
+     * @param value\r
+     * @param locale\r
+     */\r
+    public LdJobHoldUntil(String value, Locale locale) {\r
+               super(value, locale);\r
+       }\r
+\r
+       public Class getCategory() {\r
+               return LdJobHoldUntil.class;\r
+       }\r
+\r
+       public String getName() {\r
+               return LdJobHoldUntil.getIppName();\r
+       }\r
+\r
+       \r
+    public final static String getIppName() {\r
+               return "job-hold-until";\r
+       }\r
+\r
+}\r