src/share/classes/javax/print/attribute/standard/CopiesSupported.java

Print this page




  23  * questions.
  24  */
  25 package javax.print.attribute.standard;
  26 
  27 import javax.print.attribute.Attribute;
  28 import javax.print.attribute.SetOfIntegerSyntax;
  29 import javax.print.attribute.SupportedValuesAttribute;
  30 
  31 /**
  32  * Class CopiesSupported is a printing attribute class, a set of integers, that
  33  * gives the supported values for a {@link Copies Copies} attribute. It is
  34  * restricted to a single contiguous range of integers; multiple non-overlapping
  35  * ranges are not allowed.
  36  * <P>
  37  * <B>IPP Compatibility:</B> The CopiesSupported attribute's canonical array
  38  * form gives the lower and upper bound for the range of copies to be included
  39  * in an IPP "copies-supported" attribute. See class {@link
  40  * javax.print.attribute.SetOfIntegerSyntax SetOfIntegerSyntax} for an
  41  * explanation of canonical array form. The category name returned by
  42  * <CODE>getName()</CODE> gives the IPP attribute name.
  43  * <P>
  44  *
  45  * @author  Alan Kaminsky
  46  */
  47 public final class CopiesSupported extends SetOfIntegerSyntax
  48         implements SupportedValuesAttribute {
  49 
  50     private static final long serialVersionUID = 6927711687034846001L;
  51 
  52     /**
  53      * Construct a new copies supported attribute containing a single integer.
  54      * That is, only the one value of Copies is supported.
  55      *
  56      * @param  member  Set member.
  57      *
  58      * @exception  IllegalArgumentException
  59      *  (Unchecked exception) Thrown if <CODE>member</CODE> is less than 1.
  60      */
  61     public CopiesSupported(int member) {
  62         super (member);
  63         if (member < 1) {




  23  * questions.
  24  */
  25 package javax.print.attribute.standard;
  26 
  27 import javax.print.attribute.Attribute;
  28 import javax.print.attribute.SetOfIntegerSyntax;
  29 import javax.print.attribute.SupportedValuesAttribute;
  30 
  31 /**
  32  * Class CopiesSupported is a printing attribute class, a set of integers, that
  33  * gives the supported values for a {@link Copies Copies} attribute. It is
  34  * restricted to a single contiguous range of integers; multiple non-overlapping
  35  * ranges are not allowed.
  36  * <P>
  37  * <B>IPP Compatibility:</B> The CopiesSupported attribute's canonical array
  38  * form gives the lower and upper bound for the range of copies to be included
  39  * in an IPP "copies-supported" attribute. See class {@link
  40  * javax.print.attribute.SetOfIntegerSyntax SetOfIntegerSyntax} for an
  41  * explanation of canonical array form. The category name returned by
  42  * <CODE>getName()</CODE> gives the IPP attribute name.

  43  *
  44  * @author  Alan Kaminsky
  45  */
  46 public final class CopiesSupported extends SetOfIntegerSyntax
  47         implements SupportedValuesAttribute {
  48 
  49     private static final long serialVersionUID = 6927711687034846001L;
  50 
  51     /**
  52      * Construct a new copies supported attribute containing a single integer.
  53      * That is, only the one value of Copies is supported.
  54      *
  55      * @param  member  Set member.
  56      *
  57      * @exception  IllegalArgumentException
  58      *  (Unchecked exception) Thrown if <CODE>member</CODE> is less than 1.
  59      */
  60     public CopiesSupported(int member) {
  61         super (member);
  62         if (member < 1) {