--- /dev/null
+/**\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;\r
+\r
+import javax.print.attribute.DocAttribute;\r
+import javax.print.attribute.EnumSyntax;\r
+\r
+public class LastDocument extends EnumSyntax implements DocAttribute {\r
+\r
+ public final static LastDocument FALSE = new LastDocument(0);\r
+ public final static LastDocument TRUE = new LastDocument(1);\r
+\r
+ /**\r
+ *\r
+ */\r
+ protected EnumSyntax[] getEnumValueTable() {\r
+ return new EnumSyntax[] { FALSE, TRUE};\r
+ }\r
+\r
+ /**\r
+ *\r
+ */\r
+ protected int getOffset() {\r
+ return 0;\r
+ }\r
+\r
+ /**\r
+ *\r
+ */\r
+ protected String[] getStringTable() {\r
+ return new String[] { "false", "true" };\r
+ }\r
+\r
+ /**\r
+ * @param value\r
+ */\r
+ public LastDocument(int value) {\r
+ super(value);\r
+ }\r
+\r
+ /**\r
+ *\r
+ */\r
+ public Class getCategory() {\r
+ return this.getClass();\r
+ }\r
+\r
+ /**\r
+ *\r
+ */\r
+ public String getName() {\r
+ return LastDocument.getIppName();\r
+ }\r
+\r
+ /**\r
+ * @return\r
+ */\r
+ public static String getIppName() {\r
+ return "last-document";\r
+ }\r
+\r
+}\r