javax.print.attribute.standard

Class CopiesSupported

public final class CopiesSupported extends SetOfIntegerSyntax implements SupportedValuesAttribute

The CopiesSupported attribute specifies the supported value or range of values for the {@link javax.print.attribute.standard.Copies} attribute.

IPP Compatibility: CopiesSupported is an IPP 1.1 attribute.

Constructor Summary
CopiesSupported(int member)
Constructs a CopiesSupported object with the given value.
CopiesSupported(int lowerBound, int upperBound)
Constructs a CopiesSupported object with the given range of values.
Method Summary
booleanequals(Object obj)
Tests if the given object is equal to this object.
Class<? extends Attribute>getCategory()
Returns category of this class.
StringgetName()
Returns the name of this attribute.

Constructor Detail

CopiesSupported

public CopiesSupported(int member)
Constructs a CopiesSupported object with the given value. This means that only this value is supported for copies.

Parameters: member the member value

Throws: IllegalArgumentException if member is < 1

CopiesSupported

public CopiesSupported(int lowerBound, int upperBound)
Constructs a CopiesSupported object with the given range of values. This means that values for copies are supported inside the specified range.

Parameters: lowerBound the lower bound value upperBound the upper bound value

Throws: IllegalArgumentException if lowerBound < 1

Method Detail

equals

public boolean equals(Object obj)
Tests if the given object is equal to this object.

Parameters: obj the object to test

Returns: true if both objects are equal, false otherwise.

getCategory

public Class<? extends Attribute> getCategory()
Returns category of this class.

Returns: The class CopiesSupported itself.

getName

public String getName()
Returns the name of this attribute.

Returns: The name "copies-supported".