Initial import.
[clinton/mirror/jspi/.git] / jspi / src / main / java / de / lohndirekt / print / attribute / ipp / jobdesc / LdJobStateReason.java
diff --git a/jspi/src/main/java/de/lohndirekt/print/attribute/ipp/jobdesc/LdJobStateReason.java b/jspi/src/main/java/de/lohndirekt/print/attribute/ipp/jobdesc/LdJobStateReason.java
new file mode 100644 (file)
index 0000000..4e1cffb
--- /dev/null
@@ -0,0 +1,41 @@
+/*\r
+ * Created on 22.01.2004\r
+ *\r
+ * \r
+ */\r
+package de.lohndirekt.print.attribute.ipp.jobdesc;\r
+\r
+import java.util.Locale;\r
+\r
+import javax.print.attribute.standard.JobStateReason;\r
+\r
+/**\r
+ * @author bpusch\r
+ *\r
+ * \r
+ */\r
+public class LdJobStateReason extends JobStateReason {\r
+    \r
+    private String stringValue;\r
+\r
+    public static LdJobStateReason NONE = new LdJobStateReason("none", Locale.getDefault(), -1);\r
+\r
+    /**\r
+     * @param value\r
+     */\r
+    private LdJobStateReason(String stringValue, Locale locale, int value) {\r
+        super(value);\r
+        this.stringValue = stringValue;\r
+    }\r
+\r
+   public String toString(){\r
+       if (this.stringValue != null){\r
+           return this.stringValue;\r
+       } else {\r
+           return super.toString();\r
+       }\r
+   }\r
+\r
+    \r
+\r
+}\r