javax.print.attribute.standard

Class Copies

public final class Copies extends IntegerSyntax implements PrintJobAttribute, PrintRequestAttribute

The Copies printing attribute specifies the number of copies to be printed.

Note: The effect of this attribute on jobs with multiple documents is controlled by the job attribute {@link javax.print.attribute.standard.MultipleDocumentHandling}.

IPP Compatibility: Copies is an IPP 1.1 attribute.

See Also:

Constructor Summary
Copies(int value)
Creates a Copies object.
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

Copies

public Copies(int value)
Creates a Copies object.

Parameters: value the number of copies

Throws: IllegalArgumentException if value < 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 Copies itself.

getName

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

Returns: The name "copies".