harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mloe...@apache.org
Subject svn commit: r454289 [9/22] - in /incubator/harmony/enhanced/classlib/trunk/modules/H-1609: ./ modules/ modules/applet/ modules/applet/src/ modules/applet/src/main/ modules/applet/src/main/java/ modules/applet/src/main/java/java/ modules/applet/src/main...
Date Mon, 09 Oct 2006 05:33:21 GMT
Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PagesPerMinuteColor.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PagesPerMinuteColor.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PagesPerMinuteColor.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PagesPerMinuteColor.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,54 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Elena V. Sayapina 
+ * @version $Revision: 1.5 $ 
+ */ 
+
+package javax.print.attribute.standard;
+
+import javax.print.attribute.IntegerSyntax;
+import javax.print.attribute.PrintServiceAttribute;
+
+
+public final class PagesPerMinuteColor extends IntegerSyntax 
+    implements PrintServiceAttribute {
+
+
+    public PagesPerMinuteColor(int value) {
+        super(value, 0, Integer.MAX_VALUE);
+    }
+
+
+    public boolean equals(Object object) {
+        if ( !(object instanceof PagesPerMinuteColor) ) {
+            return false;
+        }
+        return super.equals(object);
+    }
+
+    public final Class getCategory() {
+    /* 1.5 support requires the following changes
+       Class<? extends Attribute> getCategory() { */
+        return PagesPerMinuteColor.class;
+    }
+
+    public final String getName() {
+        return "pages-per-minute-color";
+    }
+
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PagesPerMinuteColor.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PresentationDirection.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PresentationDirection.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PresentationDirection.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PresentationDirection.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,106 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Elena V. Sayapina 
+ * @version $Revision: 1.5 $ 
+ */ 
+
+package javax.print.attribute.standard;
+
+import javax.print.attribute.EnumSyntax;
+import javax.print.attribute.PrintJobAttribute;
+import javax.print.attribute.PrintRequestAttribute;
+
+/*
+ * Table values are obtained from PWG 5100.3:Production Printing Attributes
+ * Set1, section 3.17, ftp://ftp.pwg.org/pub/pwg/candidates/cs-ippprodprint10-20010212-5100.3.pdf
+ */
+
+public final class PresentationDirection extends EnumSyntax
+    implements PrintJobAttribute, PrintRequestAttribute {
+
+    public static final PresentationDirection
+        TOBOTTOM_TORIGHT = new PresentationDirection(0);
+
+    public static final PresentationDirection
+        TOBOTTOM_TOLEFT = new PresentationDirection(1);
+
+    public static final PresentationDirection
+        TOTOP_TORIGHT = new PresentationDirection(2);
+
+    public static final PresentationDirection
+        TOTOP_TOLEFT = new PresentationDirection(3);
+
+    public static final PresentationDirection
+        TORIGHT_TOBOTTOM = new PresentationDirection(4);
+
+    public static final PresentationDirection
+        TORIGHT_TOTOP = new PresentationDirection(5);
+
+    public static final PresentationDirection
+        TOLEFT_TOBOTTOM = new PresentationDirection(6);
+
+    public static final PresentationDirection
+        TOLEFT_TOTOP = new PresentationDirection(7);
+
+
+    private static final PresentationDirection[] enumValueTable = {
+
+            TOBOTTOM_TORIGHT,
+            TOBOTTOM_TOLEFT,
+            TOTOP_TORIGHT,
+            TOTOP_TOLEFT,
+            TORIGHT_TOBOTTOM,
+            TORIGHT_TOTOP,
+            TOLEFT_TOBOTTOM,
+            TOLEFT_TOTOP
+    };
+
+    private static final String[] stringTable = { "tobottom-toright",
+                                                  "tobottom-toleft",
+                                                  "totop-toright",
+                                                  "totop-toleft",
+                                                  "toright-tobottom",
+                                                  "toright-totop",
+                                                  "toleft-tobottom",
+                                                  "toleft-totop" };
+
+
+    PresentationDirection(int value) {
+        super(value);
+    }
+
+
+    public final Class getCategory() {
+    /* 1.5 support requires the following changes
+       Class<? extends Attribute> getCategory() { */
+        return PresentationDirection.class;
+    }
+
+    protected EnumSyntax[]  getEnumValueTable() {
+        return enumValueTable;
+    }
+
+    public final String getName() {
+        return "presentation-direction";
+    }
+
+    protected String[] getStringTable() {
+        return stringTable;
+    }
+
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PresentationDirection.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrintQuality.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrintQuality.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrintQuality.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrintQuality.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,84 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Elena V. Sayapina 
+ * @version $Revision: 1.5 $ 
+ */ 
+
+package javax.print.attribute.standard;
+
+import javax.print.attribute.DocAttribute;
+import javax.print.attribute.EnumSyntax;
+import javax.print.attribute.PrintJobAttribute;
+import javax.print.attribute.PrintRequestAttribute;
+
+
+/*
+ * Table values are obtained from RFC2911: Internet Printing Protocol/1.1: 
+ * Model and Semantics, section 4.2.13, http://ietf.org/rfc/rfc2911.txt?number=2911
+ */
+
+public class PrintQuality extends EnumSyntax 
+    implements DocAttribute, PrintJobAttribute, PrintRequestAttribute {
+
+
+    public static final PrintQuality DRAFT = new PrintQuality(3);
+
+    public static final PrintQuality NORMAL = new PrintQuality(4);
+
+    public static final PrintQuality HIGH = new PrintQuality(5);
+
+    
+    private static final PrintQuality[] enumValueTable = { DRAFT,
+                                                           NORMAL,
+                                                           HIGH };
+    
+    private static final String[] stringTable = { "draft",
+                                                  "normal",
+                                                  "high" };
+    
+    
+    protected PrintQuality(int value) {
+        super(value);
+    }
+
+
+    public final Class getCategory() {
+    /* 1.5 support requires the following changes 
+       Class<? extends Attribute> getCategory() { */
+        return PrintQuality.class;
+    }
+    
+    protected EnumSyntax[] getEnumValueTable() {
+        return (EnumSyntax[]) enumValueTable.clone();
+    }
+    
+    public final String getName() {
+        return "print-quality";
+    }
+        
+    protected int getOffset() {
+        return 3;
+    } 
+
+    protected String[] getStringTable() {
+        return (String[]) stringTable.clone();
+    }
+
+    
+}
+
+

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrintQuality.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterInfo.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterInfo.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterInfo.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterInfo.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,56 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Elena V. Sayapina 
+ * @version $Revision: 1.5 $ 
+ */ 
+
+package javax.print.attribute.standard;
+
+import java.util.Locale;
+
+import javax.print.attribute.PrintServiceAttribute;
+import javax.print.attribute.TextSyntax;
+
+public final class PrinterInfo extends TextSyntax 
+    implements PrintServiceAttribute {
+
+
+    public PrinterInfo(String printerInfo, Locale locale) {
+        super(printerInfo, locale);
+    }
+
+
+    public boolean equals(Object object) {
+
+        if ( !(object instanceof PrinterInfo) ) {
+            return false;
+        }
+        return super.equals(object);
+    }
+
+    public final Class getCategory() {
+    /* 1.5 support requires the following changes
+       Class<? extends Attribute> getCategory() { */
+        return PrinterInfo.class;
+    }
+
+    public final String getName() {
+        return "printer-info";
+    }
+
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterInfo.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterIsAcceptingJobs.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterIsAcceptingJobs.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterIsAcceptingJobs.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterIsAcceptingJobs.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,71 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Elena V. Sayapina 
+ * @version $Revision: 1.5 $ 
+ */ 
+
+package javax.print.attribute.standard;
+
+import javax.print.attribute.EnumSyntax;
+import javax.print.attribute.PrintServiceAttribute;
+
+
+public final class PrinterIsAcceptingJobs extends EnumSyntax 
+    implements PrintServiceAttribute {
+
+
+    public static final PrinterIsAcceptingJobs
+        NOT_ACCEPTING_JOBS = new PrinterIsAcceptingJobs(0);
+
+    public static final PrinterIsAcceptingJobs
+        ACCEPTING_JOBS = new PrinterIsAcceptingJobs(1);
+
+    
+    private static final PrinterIsAcceptingJobs[] enumValueTable = { 
+        NOT_ACCEPTING_JOBS,
+        ACCEPTING_JOBS
+    };
+    
+    private static final String[] stringTable = { "false",
+                                                  "true" };
+
+    
+    protected PrinterIsAcceptingJobs(int value) {
+        super (value);
+    }
+
+ 
+    protected EnumSyntax[] getEnumValueTable() {
+        return enumValueTable;
+    }
+
+    public final Class getCategory() {
+    /* 1.5 support requires the following changes 
+       Class<? extends Attribute> getCategory() { */
+        return PrinterIsAcceptingJobs.class;
+    }
+
+    public final String getName() {
+        return "printer-is-accepting-jobs";
+    }
+    
+    protected String[] getStringTable() {
+        return stringTable;
+    }
+
+    
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterIsAcceptingJobs.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterLocation.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterLocation.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterLocation.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterLocation.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,55 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Elena V. Sayapina 
+ * @version $Revision: 1.5 $ 
+ */ 
+
+package javax.print.attribute.standard;
+
+import java.util.Locale;
+
+import javax.print.attribute.PrintServiceAttribute;
+import javax.print.attribute.TextSyntax;
+
+public final class PrinterLocation extends TextSyntax 
+    implements PrintServiceAttribute {
+
+
+    public PrinterLocation(String printerLocation, Locale locale) {
+        super(printerLocation, locale);
+    }
+
+
+    public boolean equals(Object object) {
+        if ( !(object instanceof PrinterLocation) ) {
+            return false;
+        }
+        return super.equals(object);
+    }
+
+    public final Class getCategory() {
+    /* 1.5 support requires the following changes
+       Class<? extends Attribute> getCategory() { */
+        return PrinterLocation.class;
+    }
+
+    public final String getName() {
+        return "printer-location";
+    }
+
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterLocation.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterMakeAndModel.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterMakeAndModel.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterMakeAndModel.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterMakeAndModel.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,55 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Elena V. Sayapina 
+ * @version $Revision: 1.5 $ 
+ */ 
+
+package javax.print.attribute.standard;
+
+import java.util.Locale;
+
+import javax.print.attribute.PrintServiceAttribute;
+import javax.print.attribute.TextSyntax;
+
+public final class PrinterMakeAndModel extends TextSyntax 
+    implements PrintServiceAttribute {
+
+
+    public PrinterMakeAndModel(String makeAndModel, Locale locale) {
+        super(makeAndModel, locale);
+    }
+
+
+    public boolean equals(Object object) {
+        if ( !(object instanceof PrinterMakeAndModel) ) {
+            return false;
+        }
+        return super.equals(object);
+    }
+
+    public final Class getCategory() {
+    /* 1.5 support requires the following changes
+       Class<? extends Attribute> getCategory() { */
+        return PrinterMakeAndModel.class;
+    }
+
+    public final String getName() {
+        return "printer-make-and-model";
+    }
+
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterMakeAndModel.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterMessageFromOperator.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterMessageFromOperator.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterMessageFromOperator.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterMessageFromOperator.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,55 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Elena V. Sayapina 
+ * @version $Revision: 1.5 $ 
+ */ 
+
+package javax.print.attribute.standard;
+
+import java.util.Locale;
+
+import javax.print.attribute.PrintServiceAttribute;
+import javax.print.attribute.TextSyntax;
+
+public final class PrinterMessageFromOperator extends TextSyntax 
+    implements PrintServiceAttribute {
+
+
+    public PrinterMessageFromOperator(String message, Locale locale) {
+        super(message, locale);
+    }
+
+
+    public boolean equals(Object object) {
+        if ( !(object instanceof PrinterMessageFromOperator) ) {
+            return false;
+        }
+        return super.equals(object);
+    }
+
+    public final Class getCategory() {
+    /* 1.5 support requires the following changes
+       Class<? extends Attribute> getCategory() { */
+        return PrinterMessageFromOperator.class;
+    }
+
+    public final String getName() {
+        return "printer-message-from-operator";
+    }
+
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterMessageFromOperator.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterMoreInfo.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterMoreInfo.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterMoreInfo.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterMoreInfo.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,56 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Elena V. Sayapina 
+ * @version $Revision: 1.5 $ 
+ */ 
+
+package javax.print.attribute.standard;
+
+import java.net.URI;
+
+import javax.print.attribute.PrintServiceAttribute;
+import javax.print.attribute.URISyntax;
+
+
+public final class PrinterMoreInfo extends URISyntax 
+    implements PrintServiceAttribute {
+
+
+    public PrinterMoreInfo(URI uri) {
+        super(uri);
+    }
+
+
+    public boolean equals(Object object) {
+        if ( !(object instanceof PrinterMoreInfo) ) {
+            return false;
+        }
+        return super.equals(object);
+    }
+
+    public final Class getCategory() {
+    /* 1.5 support requires the following changes
+       Class<? extends Attribute> getCategory() { */
+        return PrinterMoreInfo.class;
+    }
+
+    public final String getName() {
+        return "printer-more-info";
+    }
+
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterMoreInfo.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterMoreInfoManufacturer.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterMoreInfoManufacturer.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterMoreInfoManufacturer.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterMoreInfoManufacturer.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,56 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Elena V. Sayapina 
+ * @version $Revision: 1.5 $ 
+ */ 
+
+package javax.print.attribute.standard;
+
+import java.net.URI;
+
+import javax.print.attribute.PrintServiceAttribute;
+import javax.print.attribute.URISyntax;
+
+
+public final class PrinterMoreInfoManufacturer extends URISyntax 
+    implements PrintServiceAttribute {
+
+
+    public PrinterMoreInfoManufacturer(URI uri) {
+        super(uri);
+    }
+
+
+    public boolean equals(Object object) {
+        if ( ! (object instanceof PrinterMoreInfoManufacturer) ) {
+            return false;
+        }
+        return super.equals(object);
+    }
+
+    public final Class getCategory() {
+    /* 1.5 support requires the following changes
+       Class<? extends Attribute> getCategory() { */
+        return PrinterMoreInfoManufacturer.class;
+    }
+
+    public final String getName() {
+        return "printer-more-info-manufacturer";
+    }
+
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterMoreInfoManufacturer.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterName.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterName.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterName.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterName.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,56 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Elena V. Sayapina 
+ * @version $Revision: 1.5 $ 
+ */ 
+
+package javax.print.attribute.standard;
+
+import java.util.Locale;
+
+import javax.print.attribute.PrintServiceAttribute;
+import javax.print.attribute.TextSyntax;
+
+
+public final class PrinterName extends TextSyntax 
+    implements PrintServiceAttribute {
+
+
+    public PrinterName(String printerName, Locale locale) {
+        super(printerName, locale);
+    }
+
+
+    public boolean equals(Object object) {
+        if ( !(object instanceof PrinterName) ) {
+            return false;
+        }
+        return super.equals(object);
+    }
+
+    public final Class getCategory() {
+    /* 1.5 support requires the following changes
+       Class<? extends Attribute> getCategory() { */
+        return PrinterName.class;
+    }
+
+    public final String getName() {
+        return "printer-name";
+    }
+
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterName.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterResolution.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterResolution.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterResolution.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterResolution.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,57 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Elena V. Sayapina 
+ * @version $Revision: 1.5 $ 
+ */ 
+
+package javax.print.attribute.standard;
+
+import javax.print.attribute.DocAttribute;
+import javax.print.attribute.PrintJobAttribute;
+import javax.print.attribute.PrintRequestAttribute;
+import javax.print.attribute.ResolutionSyntax;
+
+
+public final class PrinterResolution extends ResolutionSyntax 
+    implements DocAttribute, PrintRequestAttribute, PrintJobAttribute {
+
+
+    public PrinterResolution(int crossFeedResolution, int feedResolution,
+                                                                int units) {
+        super(crossFeedResolution, feedResolution, units);
+    }
+
+
+    public boolean equals(Object object) {
+        if ( !(object instanceof PrinterResolution) ) {
+            return false;
+        }
+        return super.equals (object);
+    }
+
+    public final Class getCategory() {
+    /* 1.5 support requires the following changes
+       Class<? extends Attribute> getCategory() { */
+        return PrinterResolution.class;
+    }
+
+    public final String getName() {
+        return "printer-resolution";
+    }
+
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterResolution.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterState.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterState.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterState.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterState.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,83 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Elena V. Sayapina 
+ * @version $Revision: 1.5 $ 
+ */ 
+
+package javax.print.attribute.standard;
+
+import javax.print.attribute.EnumSyntax;
+import javax.print.attribute.PrintServiceAttribute;
+
+/*
+ * Table values are obtained from RFC2911: Internet Printing Protocol/1.1: 
+ * Model and Semantics, section 4.4.11, http://ietf.org/rfc/rfc2911.txt?number=2911
+ */
+
+public final class PrinterState extends EnumSyntax 
+    implements PrintServiceAttribute {
+
+
+    public static final PrinterState UNKNOWN = new PrinterState(0);
+
+    public static final PrinterState IDLE = new PrinterState(3);
+
+    public static final PrinterState PROCESSING = new PrinterState(4);
+
+    public static final PrinterState STOPPED = new PrinterState(5);
+
+    
+    
+    private static final PrinterState[] enumValueTable = { UNKNOWN,
+                                                           null,
+                                                           null,
+                                                           IDLE,
+                                                           PROCESSING,
+                                                           STOPPED };
+
+    private static final String[] stringTable = { "unknown",
+                                                  null,
+                                                  null,
+                                                  "idle",
+                                                  "processing",
+                                                  "stopped" };
+    
+    protected PrinterState(int value) {
+        super(value);
+    }
+
+    
+    protected EnumSyntax[] getEnumValueTable() {
+        return enumValueTable;
+    }
+
+    public final Class getCategory() {
+    /* 1.5 support requires the following changes 
+       Class<? extends Attribute> getCategory() { */
+        return PrinterState.class;
+    }
+
+    public final String getName() {
+        return "printer-state";
+    }
+
+    protected String[] getStringTable() {
+        return stringTable;
+    }
+
+    
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterState.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterStateReason.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterStateReason.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterStateReason.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterStateReason.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,227 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Elena V. Sayapina 
+ * @version $Revision: 1.5 $ 
+ */ 
+
+package javax.print.attribute.standard;
+
+import javax.print.attribute.Attribute;
+import javax.print.attribute.EnumSyntax;
+
+
+public class PrinterStateReason extends EnumSyntax implements Attribute {
+
+
+    public static final PrinterStateReason
+        OTHER = new PrinterStateReason(0);
+
+    public static final PrinterStateReason 
+        MEDIA_NEEDED = new PrinterStateReason(1);
+
+    public static final PrinterStateReason
+        MEDIA_JAM = new PrinterStateReason(2);
+
+    public static final PrinterStateReason
+        MOVING_TO_PAUSED = new PrinterStateReason(3);
+
+    public static final PrinterStateReason
+        PAUSED = new PrinterStateReason(4);
+
+    public static final PrinterStateReason
+        SHUTDOWN = new PrinterStateReason(5);
+
+    public static final PrinterStateReason
+        CONNECTING_TO_DEVICE = new PrinterStateReason(6);
+
+    public static final PrinterStateReason
+        TIMED_OUT = new PrinterStateReason(7);
+
+    public static final PrinterStateReason
+        STOPPING = new PrinterStateReason(8);
+
+    public static final PrinterStateReason
+        STOPPED_PARTLY = new PrinterStateReason(9);
+
+    public static final PrinterStateReason
+        TONER_LOW = new PrinterStateReason(10);
+
+    public static final PrinterStateReason
+        TONER_EMPTY = new PrinterStateReason(11);
+
+    public static final PrinterStateReason
+        SPOOL_AREA_FULL = new PrinterStateReason(12);
+
+    public static final PrinterStateReason
+        COVER_OPEN = new PrinterStateReason(13);
+
+    public static final PrinterStateReason
+        INTERLOCK_OPEN = new PrinterStateReason(14);
+
+    public static final PrinterStateReason
+        DOOR_OPEN = new PrinterStateReason(15);
+
+    public static final PrinterStateReason
+        INPUT_TRAY_MISSING = new PrinterStateReason(16);
+
+    public static final PrinterStateReason
+        MEDIA_LOW = new PrinterStateReason(17);
+
+    public static final PrinterStateReason
+        MEDIA_EMPTY = new PrinterStateReason(18);
+
+    public static final PrinterStateReason 
+        OUTPUT_TRAY_MISSING = new PrinterStateReason(19);
+
+    public static final PrinterStateReason
+        OUTPUT_AREA_ALMOST_FULL = new PrinterStateReason(20);
+
+    public static final PrinterStateReason
+        OUTPUT_AREA_FULL = new PrinterStateReason(21);
+
+    public static final PrinterStateReason
+        MARKER_SUPPLY_LOW = new PrinterStateReason(22);
+
+    public static final PrinterStateReason
+        MARKER_SUPPLY_EMPTY = new PrinterStateReason(23);
+
+    public static final PrinterStateReason
+        MARKER_WASTE_ALMOST_FULL = new PrinterStateReason(24);
+
+    public static final PrinterStateReason 
+        MARKER_WASTE_FULL = new PrinterStateReason(25);
+
+    public static final PrinterStateReason
+        FUSER_OVER_TEMP = new PrinterStateReason(26);
+
+    public static final PrinterStateReason
+        FUSER_UNDER_TEMP = new PrinterStateReason(27);
+
+    public static final PrinterStateReason
+        OPC_NEAR_EOL = new PrinterStateReason(28);
+
+    public static final PrinterStateReason
+        OPC_LIFE_OVER = new PrinterStateReason(29);
+
+    public static final PrinterStateReason
+        DEVELOPER_LOW = new PrinterStateReason(30);
+
+    public static final PrinterStateReason
+        DEVELOPER_EMPTY = new PrinterStateReason(31);
+
+    public static final PrinterStateReason
+        INTERPRETER_RESOURCE_UNAVAILABLE = new PrinterStateReason(32);
+    
+    
+    private static final PrinterStateReason[] enumValueTable = {
+        OTHER,
+        MEDIA_NEEDED,
+        MEDIA_JAM,
+        MOVING_TO_PAUSED,
+        PAUSED,
+        SHUTDOWN,
+        CONNECTING_TO_DEVICE,
+        TIMED_OUT,
+        STOPPING,
+        STOPPED_PARTLY,
+        TONER_LOW,
+        TONER_EMPTY,
+        SPOOL_AREA_FULL,
+        COVER_OPEN,
+        INTERLOCK_OPEN,
+        DOOR_OPEN,
+        INPUT_TRAY_MISSING,
+        MEDIA_LOW,
+        MEDIA_EMPTY,
+        OUTPUT_TRAY_MISSING,
+        OUTPUT_AREA_ALMOST_FULL,
+        OUTPUT_AREA_FULL,
+        MARKER_SUPPLY_LOW,
+        MARKER_SUPPLY_EMPTY,
+        MARKER_WASTE_ALMOST_FULL,
+        MARKER_WASTE_FULL,
+        FUSER_OVER_TEMP,
+        FUSER_UNDER_TEMP,
+        OPC_NEAR_EOL,
+        OPC_LIFE_OVER,
+        DEVELOPER_LOW,
+        DEVELOPER_EMPTY,
+        INTERPRETER_RESOURCE_UNAVAILABLE
+    };
+
+    private static final String[] stringTable = {
+        "other",
+        "media-needed",
+        "media-jam",
+        "moving-to-paused",
+        "paused",
+        "shutdown",
+        "connecting-to-device",
+        "timed-out",
+        "stopping",
+        "stopped-partly",
+        "toner-low",
+        "toner-empty",
+        "spool-area-full",
+        "cover-open",
+        "interlock-open",
+        "door-open",
+        "input-tray-missing",
+        "media-low",
+        "media-empty",
+        "output-tray-missing",
+        "output-area-almost-full",
+        "output-area-full",
+        "marker-supply-low",
+        "marker-supply-empty",
+        "marker-waste-almost-full",
+        "marker-waste-full",
+        "fuser-over-temp",
+        "fuser-under-temp",
+        "opc-near-eol",
+        "opc-life-over",
+        "developer-low",
+        "developer-empty",
+        "interpreter-resource-unavailable"
+    };
+
+    
+    protected PrinterStateReason(int value) {
+        super(value);
+    }
+   
+    
+    protected EnumSyntax[] getEnumValueTable() {
+        return (EnumSyntax[]) enumValueTable.clone();
+    }
+    
+    public final Class getCategory() {
+    /* 1.5 support requires the following changes 
+       Class<? extends Attribute> getCategory() { */
+        return PrinterStateReason.class;
+    }
+
+    public final String getName() {
+        return "printer-state-reason";
+    }
+
+    protected String[] getStringTable() {
+        return (String[]) stringTable.clone();
+    }
+
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterStateReason.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterStateReasons.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterStateReasons.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterStateReasons.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterStateReasons.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,110 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Elena V. Sayapina 
+ * @version $Revision: 1.6 $ 
+ */ 
+
+package javax.print.attribute.standard;
+
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.Map;
+import java.util.Set;
+
+import javax.print.attribute.PrintServiceAttribute;
+
+/*
+ * Table values are obtained from RFC2911: Internet Printing Protocol/1.1: 
+ * Model and Semantics, section 4.4.11, http://ietf.org/rfc/rfc2911.txt?number=2911
+ */
+
+public final class PrinterStateReasons extends HashMap
+        implements PrintServiceAttribute {
+//public final class PrinterStateReasons extends 
+//HashMap<PrinterStateReason, Severity> implements PrintServiceAttribute {
+    
+    
+    public PrinterStateReasons() {
+        super();
+    }
+
+    public PrinterStateReasons(int initialCapacity) {
+        super(initialCapacity);
+    }
+
+    public PrinterStateReasons(int initialCapacity, float loadFactor) {
+        super(initialCapacity, loadFactor);
+    }
+
+    public PrinterStateReasons(Map map) {
+    //1.5 support requires the following changes 
+    //public PrinterStateReasons(Map<PrinterStateReason, Severity> map) {
+        this();
+        Iterator iterator = map.entrySet().iterator();
+        while (iterator.hasNext()) {
+            Map.Entry mapEntry = (Map.Entry) iterator.next();
+            put(mapEntry.getKey(), mapEntry.getValue());
+        }
+    }
+
+
+    public final Class getCategory() {
+    //1.5 support requires the following changes
+    //Class<? extends Attribute> getCategory() {
+        return PrinterStateReasons.class;
+    }
+
+    public final String getName() {
+        return "printer-state-reasons";
+    }
+
+    public Object put(Object reason, Object severity) {
+    //1.5 support requires the following changes 
+    //public Severity put(PrinterStateReason reason, Severity severity) {
+
+        if (reason == null) {
+            throw new NullPointerException("Reason is null");
+        }
+        if (severity == null) {
+            throw new NullPointerException("Severity is null");
+        }
+        return super.put((PrinterStateReason) reason,
+                                            (Severity) severity);
+    }
+
+    public Set printerStateReasonSet(Severity severity) {
+    //1.5 support requires the following changes 
+    //public Set<PrinterStateReason> printerStateReasonSet(Severity severity) {
+
+        if (severity == null) {
+            throw new NullPointerException("Severity is null");
+        }
+        Map.Entry mapEntry;
+        HashSet set = new HashSet();
+        Iterator iterator = entrySet().iterator();
+        while (iterator.hasNext()) {
+            mapEntry = (Map.Entry) iterator.next();
+            if ((Severity) mapEntry.getValue() == severity) {
+                set.add((PrinterStateReason) mapEntry.getKey());
+            }
+        }
+        return Collections.unmodifiableSet(set);
+    }
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterStateReasons.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterURI.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterURI.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterURI.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterURI.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,56 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Elena V. Sayapina 
+ * @version $Revision: 1.5 $ 
+ */ 
+
+package javax.print.attribute.standard;
+
+import java.net.URI;
+
+import javax.print.attribute.PrintServiceAttribute;
+import javax.print.attribute.URISyntax;
+
+
+public final class PrinterURI extends URISyntax 
+    implements PrintServiceAttribute {
+
+
+    public PrinterURI(URI uri) {
+        super(uri);
+    }
+
+
+    public boolean equals(Object object) {
+        if ( !(object instanceof PrinterURI) ) {
+            return false;
+        }
+        return super.equals(object);
+    }
+
+    public final Class getCategory() {
+    /* 1.5 support requires the following changes
+       Class<? extends Attribute> getCategory() { */
+        return PrinterURI.class;
+    }
+
+    public final String getName() {
+        return "printer-uri";
+    }
+
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/PrinterURI.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/QueuedJobCount.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/QueuedJobCount.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/QueuedJobCount.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/QueuedJobCount.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,54 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Elena V. Sayapina 
+ * @version $Revision: 1.5 $ 
+ */ 
+
+package javax.print.attribute.standard;
+
+import javax.print.attribute.IntegerSyntax;
+import javax.print.attribute.PrintServiceAttribute;
+
+
+public final class QueuedJobCount extends IntegerSyntax 
+    implements PrintServiceAttribute {
+
+
+    public QueuedJobCount(int value) {
+        super(value, 0, Integer.MAX_VALUE);
+    }
+
+
+    public boolean equals(Object object) {
+        if ( !(object instanceof QueuedJobCount) ) {
+            return false;
+        }
+        return super.equals (object);
+    }
+
+    public final Class getCategory() {
+    /* 1.5 support requires the following changes
+       Class<? extends Attribute> getCategory() { */
+        return QueuedJobCount.class;
+    }
+
+    public final String getName() {
+        return "queued-job-count";
+    }
+
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/QueuedJobCount.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/ReferenceUriSchemesSupported.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/ReferenceUriSchemesSupported.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/ReferenceUriSchemesSupported.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/ReferenceUriSchemesSupported.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,105 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Elena V. Sayapina 
+ * @version $Revision: 1.5 $ 
+ */ 
+
+package javax.print.attribute.standard;
+
+import javax.print.attribute.Attribute;
+import javax.print.attribute.EnumSyntax;
+
+/*
+ * Table values are obtained from RFC2911: Internet Printing Protocol/1.1: 
+ * Model and Semantics, section 4.1.6, 4.4.27 http://ietf.org/rfc/rfc2911.txt?number=2911
+ */
+
+public class ReferenceUriSchemesSupported extends EnumSyntax 
+    implements Attribute {
+
+    public static final ReferenceUriSchemesSupported
+        FTP = new ReferenceUriSchemesSupported(0);
+
+    public static final ReferenceUriSchemesSupported
+        HTTP = new ReferenceUriSchemesSupported(1);
+
+    public static final ReferenceUriSchemesSupported
+        HTTPS = new ReferenceUriSchemesSupported(2);
+
+    public static final ReferenceUriSchemesSupported
+        GOPHER = new ReferenceUriSchemesSupported(3);
+
+    public static final ReferenceUriSchemesSupported
+        NEWS = new ReferenceUriSchemesSupported(4);
+
+    public static final ReferenceUriSchemesSupported
+        NNTP = new ReferenceUriSchemesSupported(5);
+
+    public static final ReferenceUriSchemesSupported
+        WAIS = new ReferenceUriSchemesSupported(6);
+
+    public static final ReferenceUriSchemesSupported
+        FILE = new ReferenceUriSchemesSupported(7);
+
+
+    private static final ReferenceUriSchemesSupported[] enumValueTable = {
+
+        FTP,
+        HTTP,
+        HTTPS,
+        GOPHER,
+        NEWS,
+        NNTP,
+        WAIS,
+        FILE,
+    };
+
+    private static final String[] stringTable = { "ftp",
+                                                  "http",
+                                                  "https",
+                                                  "gopher",
+                                                  "news",
+                                                  "nntp",
+                                                  "wais",
+                                                  "file" };
+
+
+    protected ReferenceUriSchemesSupported(int value) {
+        super(value);
+    }
+
+
+    protected EnumSyntax[] getEnumValueTable() {
+        return (EnumSyntax[]) enumValueTable.clone();
+    }
+
+    public final Class getCategory() {
+    /* 1.5 support requires the following changes
+       Class<? extends Attribute> getCategory() { */
+        return ReferenceUriSchemesSupported.class;
+    }
+
+    public final String getName() {
+        return "reference-uri-schemes-supported";
+    }
+
+    protected String[] getStringTable() {
+        return (String[])stringTable.clone();
+    }
+
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/ReferenceUriSchemesSupported.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/RequestingUserName.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/RequestingUserName.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/RequestingUserName.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/RequestingUserName.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,56 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Elena V. Sayapina 
+ * @version $Revision: 1.5 $ 
+ */ 
+
+package javax.print.attribute.standard;
+
+import java.util.Locale;
+
+import javax.print.attribute.PrintRequestAttribute;
+import javax.print.attribute.TextSyntax;
+
+
+public final class RequestingUserName extends TextSyntax 
+    implements PrintRequestAttribute {
+
+
+    public RequestingUserName(String userName, Locale locale) {
+        super(userName, locale);
+    }
+
+
+    public boolean equals(Object object) {
+        if ( !(object instanceof RequestingUserName) ) {
+            return false;
+        }
+        return super.equals(object);
+    }
+
+    public final Class getCategory() {
+    /* 1.5 support requires the following changes
+       Class<? extends Attribute> getCategory() { */
+        return RequestingUserName.class;
+    }
+
+    public final String getName() {
+        return "requesting-user-name";
+    }
+
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/RequestingUserName.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/Severity.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/Severity.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/Severity.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/Severity.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,75 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Elena V. Sayapina 
+ * @version $Revision: 1.5 $ 
+ */ 
+
+package javax.print.attribute.standard;
+
+import javax.print.attribute.Attribute;
+import javax.print.attribute.EnumSyntax;
+
+
+/*
+ * table values are obtained from rfc2911: internet printing protocol/1.1: 
+ * model and semantics, section 4.4.12 http://ietf.org/rfc/rfc2911.txt?number=2911
+ */
+
+public final class Severity extends EnumSyntax implements Attribute {
+
+
+    public static final Severity REPORT = new Severity(0);
+
+    public static final Severity WARNING = new Severity(1);
+
+    public static final Severity ERROR = new Severity(2);
+
+
+    private static final Severity[] enumValueTable = { REPORT,
+                                                       WARNING,
+                                                       ERROR };
+
+    private static final String[] stringTable = { "report",
+                                                  "warning",
+                                                  "error" };
+
+
+    protected Severity(int value) {
+        super(value);
+    }
+
+
+    public final Class getCategory() {
+    /* 1.5 support requires the following changes
+       Class<? extends Attribute> getCategory() { */
+        return Severity.class;
+    }
+
+    protected EnumSyntax[] getEnumValueTable() {
+        return enumValueTable;
+    }
+
+    public final String getName() {
+        return "severity";
+    }
+
+    protected String[] getStringTable() {
+        return stringTable;
+    }
+
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/Severity.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/SheetCollate.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/SheetCollate.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/SheetCollate.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/SheetCollate.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,69 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Elena V. Sayapina 
+ * @version $Revision: 1.5 $ 
+ */ 
+
+package javax.print.attribute.standard;
+
+import javax.print.attribute.DocAttribute;
+import javax.print.attribute.EnumSyntax;
+import javax.print.attribute.PrintJobAttribute;
+import javax.print.attribute.PrintRequestAttribute;
+
+
+public final class SheetCollate extends EnumSyntax 
+    implements DocAttribute, PrintJobAttribute, PrintRequestAttribute {
+
+    
+    public static final SheetCollate UNCOLLATED = new SheetCollate(0);
+
+    public static final SheetCollate COLLATED = new SheetCollate(1);
+
+
+    private static final String[] stringTable = { "uncollated",
+                                                  "collated" };
+
+    private static final SheetCollate[] enumValueTable = { UNCOLLATED,
+                                                            COLLATED };
+    
+    
+    protected SheetCollate(int value) {
+        super(value);
+    }
+    
+
+    public final Class getCategory() {
+    /* 1.5 support requires the following changes 
+       Class<? extends Attribute> getCategory() { */
+        return SheetCollate.class;
+    }
+
+    protected EnumSyntax[] getEnumValueTable() {
+        return enumValueTable;
+    }
+    
+    public final String getName() {
+        return "sheet-collate";
+    }
+    
+    protected String[] getStringTable() {
+        return stringTable;
+    }
+
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/SheetCollate.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/Sides.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/Sides.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/Sides.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/Sides.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,81 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Elena V. Sayapina 
+ * @version $Revision: 1.5 $ 
+ */ 
+
+package javax.print.attribute.standard;
+
+import javax.print.attribute.DocAttribute;
+import javax.print.attribute.EnumSyntax;
+import javax.print.attribute.PrintJobAttribute;
+import javax.print.attribute.PrintRequestAttribute;
+
+
+/*
+ * table values are obtained from rfc2911: internet printing protocol/1.1: 
+ * model and semantics, section 4.2.8 http://ietf.org/rfc/rfc2911.txt?number=2911
+ */
+
+public final class Sides extends EnumSyntax 
+    implements DocAttribute, PrintJobAttribute, PrintRequestAttribute {
+
+    
+    public static final Sides ONE_SIDED = new Sides(0);
+
+    public static final Sides TWO_SIDED_LONG_EDGE = new Sides(1);
+   
+    public static final Sides TWO_SIDED_SHORT_EDGE = new Sides(2);
+
+    public static final Sides DUPLEX = TWO_SIDED_LONG_EDGE;
+
+    public static final Sides TUMBLE = TWO_SIDED_SHORT_EDGE;
+    
+
+    private static final Sides[] enumValueTable = { ONE_SIDED,
+                                                    TWO_SIDED_LONG_EDGE,
+                                                    TWO_SIDED_SHORT_EDGE };
+    
+    private static final String[] stringTable = { "one-sided",
+                                                  "two-sided-long-edge",
+                                                  "two-sided-short-edge" };
+
+    protected Sides(int value) {
+        super(value);
+    }
+    
+    
+    public final Class getCategory() {
+    /* 1.5 support requires the following changes 
+       Class<? extends Attribute> getCategory() { */
+        return Sides.class;
+    }
+    
+    protected EnumSyntax[] getEnumValueTable() {
+        return enumValueTable;
+    }
+
+    public final String getName() {
+        return "sides";
+    }
+    
+    protected String[] getStringTable() {
+        return stringTable;
+    }
+    
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/attribute/standard/Sides.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintEvent.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintEvent.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintEvent.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintEvent.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,32 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Aleksei V. Ivaschenko 
+ * @version $Revision: 1.3 $ 
+ */ 
+
+package javax.print.event;
+
+public class PrintEvent extends java.util.EventObject {
+
+    public PrintEvent(Object source) {
+        super(source);
+    }
+
+    public String toString() {
+        return getSource().toString();
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintEvent.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintJobAdapter.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintJobAdapter.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintJobAdapter.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintJobAdapter.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,45 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Aleksei V. Ivaschenko 
+ * @version $Revision: 1.3 $ 
+ */ 
+
+package javax.print.event;
+
+public abstract class PrintJobAdapter implements PrintJobListener {
+
+    public PrintJobAdapter() {
+    }
+
+    public void printDataTransferCompleted(PrintJobEvent event) {
+    }
+
+    public void printJobCanceled(PrintJobEvent event) {
+    }
+
+    public void printJobCompleted(PrintJobEvent event) {
+    }
+
+    public void printJobFailed(PrintJobEvent event) {
+    }
+
+    public void printJobNoMoreEvents(PrintJobEvent event) {
+    }
+
+    public void printJobRequiresAttention(PrintJobEvent event) {
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintJobAdapter.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintJobAttributeEvent.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintJobAttributeEvent.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintJobAttributeEvent.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintJobAttributeEvent.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,43 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Aleksei V. Ivaschenko 
+ * @version $Revision: 1.3 $ 
+ */ 
+
+package javax.print.event;
+
+import javax.print.DocPrintJob;
+import javax.print.attribute.PrintJobAttributeSet;
+
+public class PrintJobAttributeEvent extends PrintEvent {
+
+    private PrintJobAttributeSet attributes;
+
+    public PrintJobAttributeEvent(DocPrintJob source,
+            PrintJobAttributeSet attributes) {
+        super(source);
+        this.attributes = attributes;
+    }
+
+    public PrintJobAttributeSet getAttributes() {
+        return attributes;
+    }
+
+    public DocPrintJob getPrintJob() {
+        return (DocPrintJob)getSource();
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintJobAttributeEvent.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintJobAttributeListener.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintJobAttributeListener.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintJobAttributeListener.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintJobAttributeListener.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,26 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Aleksei V. Ivaschenko 
+ * @version $Revision: 1.3 $ 
+ */ 
+
+package javax.print.event;
+
+public interface PrintJobAttributeListener {
+
+    public void attributeUpdate(PrintJobAttributeEvent event);
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintJobAttributeListener.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintJobEvent.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintJobEvent.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintJobEvent.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintJobEvent.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,53 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Aleksei V. Ivaschenko 
+ * @version $Revision: 1.3 $ 
+ */ 
+
+package javax.print.event;
+
+import javax.print.DocPrintJob;
+
+public class PrintJobEvent extends PrintEvent {
+
+    public static final int DATA_TRANSFER_COMPLETE = 106;
+
+    public static final int JOB_CANCELED = 101;
+
+    public static final int JOB_COMPLETE = 102;
+
+    public static final int JOB_FAILED = 103;
+
+    public static final int NO_MORE_EVENTS = 105;
+
+    public static final int REQUIRES_ATTENTION = 104;
+
+    private int reason;
+
+    public PrintJobEvent(DocPrintJob source, int reason) {
+        super(source);
+        this.reason = reason;
+    }
+
+    public int getPrintEventType() {
+        return reason;
+    }
+
+    public DocPrintJob getPrintJob() {
+        return (DocPrintJob)getSource();
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintJobEvent.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintJobListener.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintJobListener.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintJobListener.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintJobListener.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,36 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Aleksei V. Ivaschenko 
+ * @version $Revision: 1.3 $ 
+ */ 
+
+package javax.print.event;
+
+public interface PrintJobListener {
+
+    public void printDataTransferCompleted(PrintJobEvent event);
+
+    public void printJobCanceled(PrintJobEvent event);
+
+    public void printJobCompleted(PrintJobEvent event);
+
+    public void printJobFailed(PrintJobEvent event);
+
+    public void printJobNoMoreEvents(PrintJobEvent event);
+
+    public void printJobRequiresAttention(PrintJobEvent event);
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintJobListener.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintServiceAttributeEvent.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintServiceAttributeEvent.java?view=auto&rev=454289
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintServiceAttributeEvent.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintServiceAttributeEvent.java Sun Oct  8 22:33:09 2006
@@ -0,0 +1,43 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/** 
+ * @author Aleksei V. Ivaschenko 
+ * @version $Revision: 1.3 $ 
+ */ 
+
+package javax.print.event;
+
+import javax.print.PrintService;
+import javax.print.attribute.PrintServiceAttributeSet;
+
+public class PrintServiceAttributeEvent extends PrintEvent {
+
+    private PrintServiceAttributeSet attributes;
+
+    public PrintServiceAttributeEvent(PrintService source,
+            PrintServiceAttributeSet attributes) {
+        super(source);
+        this.attributes = attributes;
+    }
+
+    public PrintServiceAttributeSet getAttributes() {
+        return attributes;
+    }
+
+    public PrintService getPrintService() {
+        return (PrintService)getSource();
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/H-1609/modules/print/src/main/java/common/javax/print/event/PrintServiceAttributeEvent.java
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message