javax.print.attribute.standard

Class NumberOfDocuments

public final class NumberOfDocuments extends IntegerSyntax implements PrintJobAttribute

The NumberOfDocuments printing attribute specifies the number of documents in a job.

IPP Compatibility: NumberOfDocuments is an IPP 1.1 attribute.

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

NumberOfDocuments

public NumberOfDocuments(int value)
Creates a NumberOfDocuments object.

Parameters: value the number of documents

Throws: IllegalArgumentException if value < 0

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 NumberOfDocuments itself.

getName

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

Returns: The name "number-of-documents".