aboutsummaryrefslogtreecommitdiff
path: root/libjava/javax/print
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2004-01-06 13:48:52 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2004-01-06 13:48:52 +0000
commit9ba6f952f0eac930bcdaa16b9f1f785dd3feb910 (patch)
treed522aa35e66172f2c9126dc246a47225d9329c60 /libjava/javax/print
parentb80115c4b75caf5920a59aa9e08909a2e0181901 (diff)
downloadgcc-9ba6f952f0eac930bcdaa16b9f1f785dd3feb910.zip
gcc-9ba6f952f0eac930bcdaa16b9f1f785dd3feb910.tar.gz
gcc-9ba6f952f0eac930bcdaa16b9f1f785dd3feb910.tar.bz2
DateTimeAtCompleted.java, [...]: New files.
2004-01-06 Michael Koch <konqueror@gmx.de> * javax/print/attribute/standard/DateTimeAtCompleted.java, javax/print/attribute/standard/DateTimeAtCreation.java, javax/print/attribute/standard/DateTimeAtProcessing.java, javax/print/attribute/standard/JobImpressionsCompleted.java, javax/print/attribute/standard/JobKOctets.java, javax/print/attribute/standard/JobKOctetsProcessed.java, javax/print/attribute/standard/JobMediaSheetsCompleted.java, javax/print/attribute/standard/JobPrioritySupported.java: New files. * Makefile.am (javax_source_files): Added new files. * Makefile.in: Regenerated. From-SVN: r75471
Diffstat (limited to 'libjava/javax/print')
-rw-r--r--libjava/javax/print/attribute/standard/DateTimeAtCompleted.java95
-rw-r--r--libjava/javax/print/attribute/standard/DateTimeAtCreation.java95
-rw-r--r--libjava/javax/print/attribute/standard/DateTimeAtProcessing.java95
-rw-r--r--libjava/javax/print/attribute/standard/JobImpressionsCompleted.java100
-rw-r--r--libjava/javax/print/attribute/standard/JobKOctets.java101
-rw-r--r--libjava/javax/print/attribute/standard/JobKOctetsProcessed.java101
-rw-r--r--libjava/javax/print/attribute/standard/JobMediaSheetsCompleted.java100
-rw-r--r--libjava/javax/print/attribute/standard/JobPrioritySupported.java97
8 files changed, 784 insertions, 0 deletions
diff --git a/libjava/javax/print/attribute/standard/DateTimeAtCompleted.java b/libjava/javax/print/attribute/standard/DateTimeAtCompleted.java
new file mode 100644
index 0000000..68e09fd
--- /dev/null
+++ b/libjava/javax/print/attribute/standard/DateTimeAtCompleted.java
@@ -0,0 +1,95 @@
+/* DateTimeAtCompleted.java --
+ Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute.standard;
+
+import java.util.Date;
+import javax.print.attribute.DateTimeSyntax;
+import javax.print.attribute.PrintJobAttribute;
+
+public final class DateTimeAtCompleted extends DateTimeSyntax
+ implements PrintJobAttribute
+{
+ private static final long serialVersionUID = 6497399708058490000L;
+
+ /**
+ * Creates a <code>DateTimeAtCompleted</code> object.
+ *
+ * @param value the date at completion time
+ *
+ * @exception NullPointerException if value is null
+ */
+ public DateTimeAtCompleted(Date value)
+ {
+ super(value);
+ }
+
+ /**
+ * Tests of obj is equal to this object.
+ *
+ * @param obj the object to test
+ *
+ * @returns true if both objects are equal, false otherwise.
+ */
+ public boolean equals(Object obj)
+ {
+ if(! (obj instanceof DateTimeAtCompleted))
+ return false;
+
+ return super.equals(obj);
+ }
+
+ /**
+ * Returns category of this class.
+ *
+ * @return the class <code>DateTimeAtCompleted</code> itself
+ */
+ public final Class getCategory()
+ {
+ return DateTimeAtCompleted.class;
+ }
+
+ /**
+ * Returns name of this class.
+ *
+ * @return the string "date-time-at-completed"
+ */
+ public final String getName()
+ {
+ return "date-time-at-completed";
+ }
+}
diff --git a/libjava/javax/print/attribute/standard/DateTimeAtCreation.java b/libjava/javax/print/attribute/standard/DateTimeAtCreation.java
new file mode 100644
index 0000000..2a506d1
--- /dev/null
+++ b/libjava/javax/print/attribute/standard/DateTimeAtCreation.java
@@ -0,0 +1,95 @@
+/* DateTimeAtCreation.java --
+ Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute.standard;
+
+import java.util.Date;
+import javax.print.attribute.DateTimeSyntax;
+import javax.print.attribute.PrintJobAttribute;
+
+public final class DateTimeAtCreation extends DateTimeSyntax
+ implements PrintJobAttribute
+{
+ private static final long serialVersionUID = -2923732231056647903L;
+
+ /**
+ * Creates a <code>DateTimeAtCreation</code> object.
+ *
+ * @param value the date at creation time
+ *
+ * @exception NullPointerException if value is null
+ */
+ public DateTimeAtCreation(Date value)
+ {
+ super(value);
+ }
+
+ /**
+ * Tests of obj is equal to this object.
+ *
+ * @param obj the object to test
+ *
+ * @returns true if both objects are equal, false otherwise.
+ */
+ public boolean equals(Object obj)
+ {
+ if(! (obj instanceof DateTimeAtCreation))
+ return false;
+
+ return super.equals(obj);
+ }
+
+ /**
+ * Returns category of this class.
+ *
+ * @return the class <code>DateTimeAtCreation</code> itself
+ */
+ public final Class getCategory()
+ {
+ return DateTimeAtCreation.class;
+ }
+
+ /**
+ * Returns name of this class.
+ *
+ * @return the string "date-time-at-creation"
+ */
+ public final String getName()
+ {
+ return "date-time-at-creation";
+ }
+}
diff --git a/libjava/javax/print/attribute/standard/DateTimeAtProcessing.java b/libjava/javax/print/attribute/standard/DateTimeAtProcessing.java
new file mode 100644
index 0000000..caee026
--- /dev/null
+++ b/libjava/javax/print/attribute/standard/DateTimeAtProcessing.java
@@ -0,0 +1,95 @@
+/* DateTimeAtProcessing.java --
+ Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute.standard;
+
+import java.util.Date;
+import javax.print.attribute.DateTimeSyntax;
+import javax.print.attribute.PrintJobAttribute;
+
+public final class DateTimeAtProcessing extends DateTimeSyntax
+ implements PrintJobAttribute
+{
+ private static final long serialVersionUID = -3710068197278263244L;
+
+ /**
+ * Creates a <code>DateTimeAtProcessing</code> object.
+ *
+ * @param value the date at processing time
+ *
+ * @exception NullPointerException if value is null
+ */
+ public DateTimeAtProcessing(Date value)
+ {
+ super(value);
+ }
+
+ /**
+ * Tests of obj is equal to this object.
+ *
+ * @param obj the object to test
+ *
+ * @returns true if both objects are equal, false otherwise.
+ */
+ public boolean equals(Object obj)
+ {
+ if(! (obj instanceof DateTimeAtProcessing))
+ return false;
+
+ return super.equals(obj);
+ }
+
+ /**
+ * Returns category of this class.
+ *
+ * @return the class <code>DateTimeAtProcessing</code> itself
+ */
+ public final Class getCategory()
+ {
+ return DateTimeAtProcessing.class;
+ }
+
+ /**
+ * Returns name of this class.
+ *
+ * @return the string "date-time-at-processing"
+ */
+ public final String getName()
+ {
+ return "date-time-at-processing";
+ }
+}
diff --git a/libjava/javax/print/attribute/standard/JobImpressionsCompleted.java b/libjava/javax/print/attribute/standard/JobImpressionsCompleted.java
new file mode 100644
index 0000000..da30186
--- /dev/null
+++ b/libjava/javax/print/attribute/standard/JobImpressionsCompleted.java
@@ -0,0 +1,100 @@
+/* JobImpressionsCompleted.java --
+ Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute.standard;
+
+import javax.print.attribute.IntegerSyntax;
+import javax.print.attribute.PrintJobAttribute;
+
+/**
+ * @author Michael Koch
+ */
+public final class JobImpressionsCompleted extends IntegerSyntax
+ implements PrintJobAttribute
+{
+ private static final long serialVersionUID = 6722648442432393294L;
+
+ /**
+ * Creates a <code>JobImpressionsCompleted</code> object.
+ *
+ * @param value the number of completed impressions
+ *
+ * @exception IllegalArgumentException if value < 0
+ */
+ public JobImpressionsCompleted(int value)
+ {
+ super(value);
+
+ if (value < 0)
+ throw new IllegalArgumentException("value may not be less than 0");
+ }
+
+ /**
+ * Tests of obj is equal to this object.
+ *
+ * @param obj the object to test
+ *
+ * @returns true if both objects are equal, false otherwise.
+ */
+ public boolean equals(Object obj)
+ {
+ if(! (obj instanceof JobImpressionsCompleted))
+ return false;
+
+ return super.equals(obj);
+ }
+
+ /**
+ * Returns category of this class.
+ *
+ * @return the class <code>JobImpressionsCompleted</code> itself
+ */
+ public final Class getCategory()
+ {
+ return JobImpressionsCompleted.class;
+ }
+
+ /**
+ * Returns name of this class.
+ *
+ * @return the string "job-impressions-completed"
+ */
+ public final String getName()
+ {
+ return "job-impressions";
+ }
+}
diff --git a/libjava/javax/print/attribute/standard/JobKOctets.java b/libjava/javax/print/attribute/standard/JobKOctets.java
new file mode 100644
index 0000000..ff86181
--- /dev/null
+++ b/libjava/javax/print/attribute/standard/JobKOctets.java
@@ -0,0 +1,101 @@
+/* JobKOctets.java --
+ Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute.standard;
+
+import javax.print.attribute.IntegerSyntax;
+import javax.print.attribute.PrintJobAttribute;
+import javax.print.attribute.PrintRequestAttribute;
+
+/**
+ * @author Michael Koch
+ */
+public final class JobKOctets extends IntegerSyntax
+ implements PrintJobAttribute, PrintRequestAttribute
+{
+ private static final long serialVersionUID = -8959710146498202869L;
+
+ /**
+ * Creates a <code>JobKOctets</code> object.
+ *
+ * @param value the number of K octets
+ *
+ * @exception IllegalArgumentException if value < 0
+ */
+ public JobKOctets(int value)
+ {
+ super(value);
+
+ if (value < 0)
+ throw new IllegalArgumentException("value may not be less than 0");
+ }
+
+ /**
+ * Tests of obj is equal to this object.
+ *
+ * @param obj the object to test
+ *
+ * @returns true if both objects are equal, false otherwise.
+ */
+ public boolean equals(Object obj)
+ {
+ if(! (obj instanceof JobKOctets))
+ return false;
+
+ return super.equals(obj);
+ }
+
+ /**
+ * Returns category of this class.
+ *
+ * @return the class <code>JobKOctets</code> itself
+ */
+ public final Class getCategory()
+ {
+ return JobKOctets.class;
+ }
+
+ /**
+ * Returns name of this class.
+ *
+ * @return the string "job-k-octets"
+ */
+ public final String getName()
+ {
+ return "job-k-octets";
+ }
+}
diff --git a/libjava/javax/print/attribute/standard/JobKOctetsProcessed.java b/libjava/javax/print/attribute/standard/JobKOctetsProcessed.java
new file mode 100644
index 0000000..76d3d6d
--- /dev/null
+++ b/libjava/javax/print/attribute/standard/JobKOctetsProcessed.java
@@ -0,0 +1,101 @@
+/* JobKOctetsProcessed.java --
+ Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute.standard;
+
+import javax.print.attribute.IntegerSyntax;
+import javax.print.attribute.PrintJobAttribute;
+import javax.print.attribute.PrintRequestAttribute;
+
+/**
+ * @author Michael Koch
+ */
+public final class JobKOctetsProcessed extends IntegerSyntax
+ implements PrintJobAttribute, PrintRequestAttribute
+{
+ private static final long serialVersionUID = -6265238509657881806L;
+
+ /**
+ * Creates a <code>JobKOctetsProcessed</code> object.
+ *
+ * @param value the number of processed K octets
+ *
+ * @exception IllegalArgumentException if value < 0
+ */
+ public JobKOctetsProcessed(int value)
+ {
+ super(value);
+
+ if (value < 0)
+ throw new IllegalArgumentException("value may not be less than 0");
+ }
+
+ /**
+ * Tests of obj is equal to this object.
+ *
+ * @param obj the object to test
+ *
+ * @returns true if both objects are equal, false otherwise.
+ */
+ public boolean equals(Object obj)
+ {
+ if(! (obj instanceof JobKOctetsProcessed))
+ return false;
+
+ return super.equals(obj);
+ }
+
+ /**
+ * Returns category of this class.
+ *
+ * @return the class <code>JobKOctetsProcessed</code> itself
+ */
+ public final Class getCategory()
+ {
+ return JobKOctetsProcessed.class;
+ }
+
+ /**
+ * Returns name of this class.
+ *
+ * @return the string "job-k-octets-processed"
+ */
+ public final String getName()
+ {
+ return "job-k-octets-processed";
+ }
+}
diff --git a/libjava/javax/print/attribute/standard/JobMediaSheetsCompleted.java b/libjava/javax/print/attribute/standard/JobMediaSheetsCompleted.java
new file mode 100644
index 0000000..849e942
--- /dev/null
+++ b/libjava/javax/print/attribute/standard/JobMediaSheetsCompleted.java
@@ -0,0 +1,100 @@
+/* JobMediaSheetsCompleted.java --
+ Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute.standard;
+
+import javax.print.attribute.IntegerSyntax;
+import javax.print.attribute.PrintJobAttribute;
+
+/**
+ * @author Michael Koch
+ */
+public class JobMediaSheetsCompleted extends IntegerSyntax
+ implements PrintJobAttribute
+{
+ private static final long serialVersionUID = 1739595973810840475L;
+
+ /**
+ * Creates a <code>JobMediaSheetsCompleted</code> object.
+ *
+ * @param value the number of completed media sheets for a print job
+ *
+ * @exception IllegalArgumentException if value < 0
+ */
+ public JobMediaSheetsCompleted(int value)
+ {
+ super(value);
+
+ if (value < 0)
+ throw new IllegalArgumentException("value may not be less than 0");
+ }
+
+ /**
+ * Tests of obj is equal to this object.
+ *
+ * @param obj the object to test
+ *
+ * @returns true if both objects are equal, false otherwise.
+ */
+ public boolean equals(Object obj)
+ {
+ if(! (obj instanceof JobMediaSheetsCompleted))
+ return false;
+
+ return super.equals(obj);
+ }
+
+ /**
+ * Returns category of this class.
+ *
+ * @return the class <code>JobMediaSheetsCompleted</code> itself
+ */
+ public final Class getCategory()
+ {
+ return JobMediaSheetsCompleted.class;
+ }
+
+ /**
+ * Returns name of this class.
+ *
+ * @return the string "job-media-sheets-completed"
+ */
+ public final String getName()
+ {
+ return "job-media-sheets-completed";
+ }
+}
diff --git a/libjava/javax/print/attribute/standard/JobPrioritySupported.java b/libjava/javax/print/attribute/standard/JobPrioritySupported.java
new file mode 100644
index 0000000..a46c76b
--- /dev/null
+++ b/libjava/javax/print/attribute/standard/JobPrioritySupported.java
@@ -0,0 +1,97 @@
+/* JobPrioritySupported.java --
+ Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute.standard;
+
+import javax.print.attribute.IntegerSyntax;
+import javax.print.attribute.SupportedValuesAttribute;
+
+public final class JobPrioritySupported extends IntegerSyntax
+ implements SupportedValuesAttribute
+{
+ private static final long serialVersionUID = 2564840378013555894L;
+
+ /**
+ * Creates a <code>JobPrioritySupported</code> object.
+ *
+ * @param value the priority
+ *
+ * @exception IllegalArgumentException if value < 1 or value > 100
+ */
+ public JobPrioritySupported(int value)
+ {
+ super(value);
+
+ if (value < 1 || value > 100)
+ throw new IllegalArgumentException("value out of range");
+ }
+
+ /**
+ * Tests of obj is equal to this object.
+ *
+ * @param obj the object to test
+ *
+ * @returns true if both objects are equal, false otherwise.
+ */
+ public boolean equals(Object obj)
+ {
+ if(! (obj instanceof JobPrioritySupported))
+ return false;
+
+ return super.equals(obj);
+ }
+
+ /**
+ * Returns category of this class.
+ *
+ * @return the class <code>JobPrioritySupported</code> itself
+ */
+ public final Class getCategory()
+ {
+ return JobPrioritySupported.class;
+ }
+
+ /**
+ * Returns name of this class.
+ *
+ * @return the string "job-priority-supported"
+ */
+ public final String getName()
+ {
+ return "job-priority-supported";
+ }
+}