javax.print.attribute.standard

Class JobName

public final class JobName extends TextSyntax implements PrintJobAttribute, PrintRequestAttribute

The JobName printing attribute provides the name of a print job for identification.

IPP Compatibility: JobName is an IPP 1.1 attribute.

Constructor Summary
JobName(String jobName, Locale locale)
Creates a JobName 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

JobName

public JobName(String jobName, Locale locale)
Creates a JobName object.

Parameters: jobName the job name. locale the locale to use, if null the default locale is used.

Throws: NullPointerException if jobName is null.

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

getName

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

Returns: The name "job-name".