javax.print.attribute.standard
Class DateTimeAtCreation

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

public final class DateTimeAtCreation
extends DateTimeSyntax
implements PrintJobAttribute

The DateTimeAtCreation attribute specifies the date and the time at which a print job was created.

IPP Compatibility: DateTimeAtCreation is an IPP 1.1 attribute.

See Also:
DateTimeAtCompleted, DateTimeAtProcessing, Serialized Form

Constructor Summary
DateTimeAtCreation(Date value)
          Creates a DateTimeAtCreation 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

DateTimeAtCreation

public DateTimeAtCreation(Date value)
Creates a DateTimeAtCreation object.

Parameters:
value - the date at creation time
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 DateTimeAtCreation itself.

getName

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

Specified by:
getName in interface Attribute
Returns:
The name "date-time-at-creation".