javax.print.attribute.standard
Class JobHoldUntil

java.lang.Object
  extended by javax.print.attribute.DateTimeSyntax
      extended by javax.print.attribute.standard.JobHoldUntil
All Implemented Interfaces:
Serializable, Cloneable, Attribute, PrintJobAttribute, PrintRequestAttribute

public final class JobHoldUntil
extends DateTimeSyntax
implements PrintJobAttribute, PrintRequestAttribute

The JobHoldUntil attribute specifies the date and the time at which a print job must become a candidate for printing.

IPP Compatibility: JobHoldUntil is an IPP 1.1 attribute. However the attribute in IPP is based on keywords of named time periods like day-time or evening. It will depend on the concrete implementation of a print service how a mapping of the detailed provided date and time of this attribute to the named keyword or an alternate extension attribute will be done. E.g. CUPS supports also a HH:MM format as extension to the keywords.

See Also:
Serialized Form

Constructor Summary
JobHoldUntil(Date value)
          Creates a JobHoldUntil 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.DateTimeSyntax
getValue, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JobHoldUntil

public JobHoldUntil(Date value)
Creates a JobHoldUntil object.

Parameters:
value - the date to hold the job until
Throws:
NullPointerException - if value is null
Method Detail

equals

public boolean equals(Object obj)
Tests if the given object is equal to this object.

Overrides:
equals in class DateTimeSyntax
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 JobHoldUntil itself.

getName

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

Specified by:
getName in interface Attribute
Returns:
The name "job-hold-until".