javax.print.attribute.standard

Class OutputDeviceAssigned

public final class OutputDeviceAssigned extends TextSyntax implements PrintJobAttribute

The OutputDeviceAssigned printing attribute specifies the output printer device assigned by a print service to a print job.

This may be empty if a print service is embedded in a printer, e.g. is the output device. However there exist print services with several physical output devices (e.g. CUPS classes) where this attribute provides the actual output device.

IPP Compatibility: OutputDeviceAssigned is an IPP 1.1 attribute.

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

OutputDeviceAssigned

public OutputDeviceAssigned(String deviceName, Locale locale)
Creates a OutputDeviceAssigned object.

Parameters: deviceName the name of the device. locale the locale to use, if null the default locale is used.

Throws: NullPointerException if deviceName 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 OutputDeviceAssigned itself.

getName

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

Returns: The name "output-device-assigned".