public final class PrinterMakeAndModel extends TextSyntax implements PrintServiceAttribute
PrinterMakeAndModel printing attribute provides the name
of the maker and the model of the printer.
IPP Compatibility: PrinterMakeAndModel is an IPP 1.1 attribute.
| Constructor and Description |
|---|
PrinterMakeAndModel(String makeAndModel,
Locale locale)
Creates a
PrinterMakeAndModel 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 PrinterMakeAndModel(String makeAndModel, Locale locale)
PrinterMakeAndModel object.makeAndModel - the make and model stringlocale - the locale to use, if null the default
locale is used.NullPointerException - if makeAndModel 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 AttributePrinterMakeAndModel itself.