javax.print.attribute.standard

Class JobMediaSheetsCompleted

public final class JobMediaSheetsCompleted extends IntegerSyntax implements PrintJobAttribute

The JobMediaSheetsCompleted printing attribute reports the number of media sheets already processed.

This attribute belongs to a group of job progress attributes which are reporting on the progress of a print job.

IPP Compatibility: JobMediaSheetsCompleted is an IPP 1.1 attribute.

See Also: JobImpressionsCompleted

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

JobMediaSheetsCompleted

public JobMediaSheetsCompleted(int value)
Creates a JobMediaSheetsCompleted object.

Parameters: value the number of completed media sheets

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

getName

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

Returns: The name "job-media-sheets-completed".