javax.print.attribute.standard
Class PrinterURI

java.lang.Object
  extended by javax.print.attribute.URISyntax
      extended by javax.print.attribute.standard.PrinterURI
All Implemented Interfaces:
Serializable, Cloneable, Attribute, PrintServiceAttribute

public final class PrinterURI
extends URISyntax
implements PrintServiceAttribute

The PrinterURI attribute provides the URI of a printer.

The URI identifies the printer against all the other print services available. This attribute is used to direct a print service request to this specific printer.

IPP Compatibility: PrinterURI is an IPP 1.1 attribute.

See Also:
Serialized Form

Constructor Summary
PrinterURI(URI uri)
          Constructs a PrinterURI 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.URISyntax
getURI, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PrinterURI

public PrinterURI(URI uri)
Constructs a PrinterURI object.

Parameters:
uri - the URI of the print service.
Throws:
NullPointerException - if the given uri is null.
Method Detail

equals

public boolean equals(Object obj)
Tests if the given object is equal to this object.

Overrides:
equals in class URISyntax
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 PrinterURI itself.

getName

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

Specified by:
getName in interface Attribute
Returns:
The name "printer-uri".