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

Print this page




  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 JobImpressionsSupported is a printing attribute class, a set of
  33  * integers, that gives the supported values for a {@link JobImpressions
  34  * JobImpressions} attribute. It is restricted to a single contiguous range of
  35  * integers; multiple non-overlapping ranges are not allowed. This gives the
  36  * lower and upper bounds of the total sizes of print jobs in number of
  37  * impressions that the printer will accept.
  38  * <P>
  39  * <B>IPP Compatibility:</B> The JobImpressionsSupported attribute's canonical
  40  * array form gives the lower and upper bound for the range of values to be
  41  * included in an IPP "job-impressions-supported" attribute. See class {@link
  42  * javax.print.attribute.SetOfIntegerSyntax SetOfIntegerSyntax} for an
  43  * explanation of canonical array form. The category name returned by
  44  * <CODE>getName()</CODE> gives the IPP attribute name.
  45  * <P>
  46  *
  47  * @author  Alan Kaminsky
  48  */
  49 public final class JobImpressionsSupported extends SetOfIntegerSyntax
  50         implements SupportedValuesAttribute {
  51 
  52     private static final long serialVersionUID = -4887354803843173692L;
  53 
  54 
  55     /**
  56      * Construct a new job impressions supported attribute containing a single
  57      * range of integers. That is, only those values of JobImpressions in the
  58      * one range are supported.
  59      *
  60      * @param  lowerBound  Lower bound of the range.
  61      * @param  upperBound  Upper bound of the range.
  62      *
  63      * @exception  IllegalArgumentException
  64      *     (Unchecked exception) Thrown if a null range is specified or if a
  65      *     non-null range is specified with <CODE>lowerBound</CODE> less than




  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 JobImpressionsSupported is a printing attribute class, a set of
  33  * integers, that gives the supported values for a {@link JobImpressions
  34  * JobImpressions} attribute. It is restricted to a single contiguous range of
  35  * integers; multiple non-overlapping ranges are not allowed. This gives the
  36  * lower and upper bounds of the total sizes of print jobs in number of
  37  * impressions that the printer will accept.
  38  * <P>
  39  * <B>IPP Compatibility:</B> The JobImpressionsSupported attribute's canonical
  40  * array form gives the lower and upper bound for the range of values to be
  41  * included in an IPP "job-impressions-supported" attribute. See class {@link
  42  * javax.print.attribute.SetOfIntegerSyntax SetOfIntegerSyntax} for an
  43  * explanation of canonical array form. The category name returned by
  44  * <CODE>getName()</CODE> gives the IPP attribute name.

  45  *
  46  * @author  Alan Kaminsky
  47  */
  48 public final class JobImpressionsSupported extends SetOfIntegerSyntax
  49         implements SupportedValuesAttribute {
  50 
  51     private static final long serialVersionUID = -4887354803843173692L;
  52 
  53 
  54     /**
  55      * Construct a new job impressions supported attribute containing a single
  56      * range of integers. That is, only those values of JobImpressions in the
  57      * one range are supported.
  58      *
  59      * @param  lowerBound  Lower bound of the range.
  60      * @param  upperBound  Upper bound of the range.
  61      *
  62      * @exception  IllegalArgumentException
  63      *     (Unchecked exception) Thrown if a null range is specified or if a
  64      *     non-null range is specified with <CODE>lowerBound</CODE> less than