javax.print.attribute.standard

Class NumberUpSupported

public final class NumberUpSupported extends SetOfIntegerSyntax implements SupportedValuesAttribute

The NumberUpSupported printing attribute specifies the supported value or range of values for the {@link javax.print.attribute.standard.NumberUp} attribute.

IPP Compatibility: NumberUpSupported is an IPP 1.1 attribute.

Constructor Summary
NumberUpSupported(int member)
Constructs a NumberUpSupported object.
NumberUpSupported(int[][] members)
Constructs a NumberUpSupported object.
NumberUpSupported(int lowerBound, int upperBound)
Constructs a NumberUpSupported object with the given range for supported number up 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

NumberUpSupported

public NumberUpSupported(int member)
Constructs a NumberUpSupported object.

Parameters: member the only one value supported for number up.

Throws: IllegalArgumentException if member is < 1

NumberUpSupported

public NumberUpSupported(int[][] members)
Constructs a NumberUpSupported object.

Parameters: members the members supported for number up.

Throws: IllegalArgumentException if any element is invalid NullPointerException if members is null or any element of members is null.

NumberUpSupported

public NumberUpSupported(int lowerBound, int upperBound)
Constructs a NumberUpSupported object with the given range for supported number up values.

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

Throws: IllegalArgumentException if lowerBound <= upperbound and 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 NumberUpSupported itself.

getName

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

Returns: The name "number-up-supported".