javax.print.attribute.standard

Class PrinterName

public final class PrinterName extends TextSyntax implements PrintServiceAttribute

The 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.

See Also:

Constructor Summary
PrinterName(String printerName, Locale locale)
Creates a PrinterName 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

PrinterName

public PrinterName(String printerName, Locale locale)
Creates a PrinterName object.

Parameters: printerName the printer name locale the locale to use, if null the default locale is used.

Throws: NullPointerException if printerName 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 PrinterName itself.

getName

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

Returns: The name "printer-name".