javax.print.attribute.standard
Class OutputDeviceAssigned

java.lang.Object
  extended by javax.print.attribute.TextSyntax
      extended by javax.print.attribute.standard.OutputDeviceAssigned
All Implemented Interfaces:
Serializable, Cloneable, Attribute, PrintJobAttribute

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.

See Also:
Serialized Form

Constructor Summary
OutputDeviceAssigned(String deviceName, Locale locale)
          Creates a OutputDeviceAssigned object.
 
Method Summary
 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.
 
Methods inherited from class javax.print.attribute.TextSyntax
getLocale, getValue, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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.

Overrides:
equals in class TextSyntax
Parameters:
obj - the object to test
Returns:
true if both objects are equal, false otherwise.
See Also:
Object.hashCode()

getCategory

public Class<? extends Attribute> getCategory()
Returns category of this class.

Specified by:
getCategory in interface Attribute
Returns:
The class OutputDeviceAssigned itself.

getName

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

Specified by:
getName in interface Attribute
Returns:
The name "output-device-assigned".