javax.print.attribute.standard
public final class JobName extends TextSyntax implements PrintJobAttribute, PrintRequestAttribute
JobName
printing attribute provides the name of a
print job for identification.
IPP Compatibility: JobName is an IPP 1.1 attribute.
Constructor and Description |
---|
JobName(String jobName,
Locale locale)
Creates a
JobName object. |
Modifier and Type | Method and Description |
---|---|
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.
|
getLocale, getValue, hashCode, toString
public JobName(String jobName, Locale locale)
JobName
object.jobName
- the job name.locale
- the locale to use, if null
the default
locale is used.NullPointerException
- if jobName is null
.public boolean equals(Object obj)
equals
in class TextSyntax
obj
- the object to testtrue
if both objects are equal,
false
otherwise.Object.hashCode()
public Class<? extends Attribute> getCategory()
getCategory
in interface Attribute
JobName
itself.