javax.print.attribute.standard
Class JobMediaSheetsCompleted

java.lang.Object
  extended by javax.print.attribute.IntegerSyntax
      extended by javax.print.attribute.standard.JobMediaSheetsCompleted
All Implemented Interfaces:
Serializable, Cloneable, Attribute, PrintJobAttribute

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, JobKOctetsProcessed, Serialized Form

Constructor Summary
JobMediaSheetsCompleted(int value)
          Creates a JobMediaSheetsCompleted object.
 
Method Summary
 boolean equals(Object obj)
          Tests if the given object is equal to this object.
 Class<? extends Attribute> getCategory()
          Returns category of this class.
 String getName()
          Returns the name of this attribute.
 
Methods inherited from class javax.print.attribute.IntegerSyntax
getValue, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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.

Overrides:
equals in class IntegerSyntax
Parameters:
obj - the object to test
Returns:
true if both objects are equal, false otherwise.
See Also:
Object.hashCode()

getCategory

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

Specified by:
getCategory in interface Attribute
Returns:
The class JobMediaSheetsCompleted itself.

getName

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

Specified by:
getName in interface Attribute
Returns:
The name "job-media-sheets-completed".