< prev index next >

src/java.desktop/share/classes/javax/print/attribute/standard/PDLOverrideSupported.java

Print this page




  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 package javax.print.attribute.standard;
  26 
  27 import javax.print.attribute.Attribute;
  28 import javax.print.attribute.EnumSyntax;
  29 import javax.print.attribute.PrintServiceAttribute;
  30 
  31 /**
  32  * Class PDLOverrideSupported is a printing attribute class, an enumeration,
  33  * that expresses the printer's ability to attempt to override processing
  34  * instructions embedded in documents' print data with processing instructions
  35  * specified as attributes outside the print data.
  36  * <P>
  37  * <B>IPP Compatibility:</B> The category name returned by
  38  * <CODE>getName()</CODE> is the IPP attribute name.  The enumeration's
  39  * integer value is the IPP enum value.  The <code>toString()</code> method
  40  * returns the IPP string representation of the attribute value.
  41  *
  42  * @author  Alan Kaminsky
  43  */
  44 public class PDLOverrideSupported extends EnumSyntax
  45     implements PrintServiceAttribute {
  46 
  47     private static final long serialVersionUID = -4393264467928463934L;
  48 
  49     /**
  50      * The printer makes no attempt to make the external job attribute values
  51      * take precedence over embedded instructions in the documents' print
  52      * data.
  53      */
  54     public static final PDLOverrideSupported
  55         NOT_ATTEMPTED = new PDLOverrideSupported(0);
  56 
  57     /**
  58      * The printer attempts to make the external job attribute values take
  59      * precedence over embedded instructions in the documents' print data,


  99 
 100     /**
 101      * Get the printing attribute class which is to be used as the "category"
 102      * for this printing attribute value.
 103      * <P>
 104      * For class PDLOverrideSupported and any vendor-defined subclasses, the
 105      * category is class PDLOverrideSupported itself.
 106      *
 107      * @return  Printing attribute class (category), an instance of class
 108      *          {@link java.lang.Class java.lang.Class}.
 109      */
 110     public final Class<? extends Attribute> getCategory() {
 111         return PDLOverrideSupported.class;
 112     }
 113 
 114     /**
 115      * Get the name of the category of which this attribute value is an
 116      * instance.
 117      * <P>
 118      * For class PDLOverrideSupported and any vendor-defined subclasses, the
 119      * category name is <CODE>"pdl-override-supported"</CODE>.
 120      *
 121      * @return  Attribute category name.
 122      */
 123     public final String getName() {
 124         return "pdl-override-supported";
 125     }
 126 
 127 }


  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 package javax.print.attribute.standard;
  26 
  27 import javax.print.attribute.Attribute;
  28 import javax.print.attribute.EnumSyntax;
  29 import javax.print.attribute.PrintServiceAttribute;
  30 
  31 /**
  32  * Class PDLOverrideSupported is a printing attribute class, an enumeration,
  33  * that expresses the printer's ability to attempt to override processing
  34  * instructions embedded in documents' print data with processing instructions
  35  * specified as attributes outside the print data.
  36  * <P>
  37  * <B>IPP Compatibility:</B> The category name returned by
  38  * {@code getName()} is the IPP attribute name.  The enumeration's
  39  * integer value is the IPP enum value.  The {@code toString()} method
  40  * returns the IPP string representation of the attribute value.
  41  *
  42  * @author  Alan Kaminsky
  43  */
  44 public class PDLOverrideSupported extends EnumSyntax
  45     implements PrintServiceAttribute {
  46 
  47     private static final long serialVersionUID = -4393264467928463934L;
  48 
  49     /**
  50      * The printer makes no attempt to make the external job attribute values
  51      * take precedence over embedded instructions in the documents' print
  52      * data.
  53      */
  54     public static final PDLOverrideSupported
  55         NOT_ATTEMPTED = new PDLOverrideSupported(0);
  56 
  57     /**
  58      * The printer attempts to make the external job attribute values take
  59      * precedence over embedded instructions in the documents' print data,


  99 
 100     /**
 101      * Get the printing attribute class which is to be used as the "category"
 102      * for this printing attribute value.
 103      * <P>
 104      * For class PDLOverrideSupported and any vendor-defined subclasses, the
 105      * category is class PDLOverrideSupported itself.
 106      *
 107      * @return  Printing attribute class (category), an instance of class
 108      *          {@link java.lang.Class java.lang.Class}.
 109      */
 110     public final Class<? extends Attribute> getCategory() {
 111         return PDLOverrideSupported.class;
 112     }
 113 
 114     /**
 115      * Get the name of the category of which this attribute value is an
 116      * instance.
 117      * <P>
 118      * For class PDLOverrideSupported and any vendor-defined subclasses, the
 119      * category name is {@code "pdl-override-supported"}.
 120      *
 121      * @return  Attribute category name.
 122      */
 123     public final String getName() {
 124         return "pdl-override-supported";
 125     }
 126 
 127 }
< prev index next >