public final class PrinterName extends TextSyntax implements PrintServiceAttribute
PrinterName printing attribute provides the name of a
print service. The name may but must not be related to parts of the
printer URI.
IPP Compatibility: PrinterName is an IPP 1.1 attribute.
PrinterURI,
Serialized Form| Constructor and Description |
|---|
PrinterName(String printerName,
Locale locale)
Creates a
PrinterName 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, toStringpublic PrinterName(String printerName, Locale locale)
PrinterName object.printerName - the printer namelocale - the locale to use, if null the default
locale is used.NullPointerException - if printerName is null.public boolean equals(Object obj)
equals in class TextSyntaxobj - the object to testtrue if both objects are equal,
false otherwise.Object.hashCode()public Class<? extends Attribute> getCategory()
getCategory in interface AttributePrinterName itself.