javax.print.attribute.standard

Class PrinterMakeAndModel

public final class PrinterMakeAndModel extends TextSyntax implements PrintServiceAttribute

The 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 Summary
PrinterMakeAndModel(String makeAndModel, Locale locale)
Creates a PrinterMakeAndModel 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

PrinterMakeAndModel

public PrinterMakeAndModel(String makeAndModel, Locale locale)
Creates a PrinterMakeAndModel object.

Parameters: makeAndModel the make and model string locale the locale to use, if null the default locale is used.

Throws: NullPointerException if makeAndModel 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 PrinterMakeAndModel itself.

getName

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

Returns: The name "printer-make-and-model".