public final class OutputDeviceAssigned extends javax.print.attribute.TextSyntax implements javax.print.attribute.PrintJobAttribute
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 and Description |
|---|
OutputDeviceAssigned(java.lang.String deviceName,
java.util.Locale locale)
Creates a
OutputDeviceAssigned object. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Tests if the given object is equal to this object.
|
java.lang.Class<? extends javax.print.attribute.Attribute> |
getCategory()
Returns category of this class.
|
java.lang.String |
getName()
Returns the name of this attribute.
|
public OutputDeviceAssigned(java.lang.String deviceName, java.util.Locale locale)
OutputDeviceAssigned object.deviceName - the name of the device.locale - the locale to use, if null the default
locale is used.java.lang.NullPointerException - if deviceName is null.public boolean equals(java.lang.Object obj)
equals in class javax.print.attribute.TextSyntaxobj - the object to testtrue if both objects are equal,
false otherwise.Object.hashCode()public java.lang.Class<? extends javax.print.attribute.Attribute> getCategory()
getCategory in interface javax.print.attribute.AttributeOutputDeviceAssigned itself.public java.lang.String getName()
getName in interface javax.print.attribute.Attribute