javax.print.attribute.standard
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, toString
public 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 TextSyntax
obj
- the object to testtrue
if both objects are equal,
false
otherwise.Object.hashCode()
public Class<? extends Attribute> getCategory()
getCategory
in interface Attribute
PrinterMakeAndModel
itself.