javax.print.attribute.standard
Class PrinterURI

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

public final class PrinterURI
extends URISyntax sample code for javax.print.attribute.URISyntax definition code for javax.print.attribute.URISyntax
implements PrintServiceAttribute sample code for javax.print.attribute.PrintServiceAttribute definition code for javax.print.attribute.PrintServiceAttribute

Class PrinterURI is a printing attribute class, a URI, that specifies the globally unique name of a printer. If it has such a name, an administrator determines a printer's URI and sets this attribute to that name.

IPP Compatibility: This implements the IPP printer-uri attribute. The string form returned by toString() gives the IPP printer-uri value. The category name returned by getName() gives the IPP attribute name.

See Also:
Serialized Form

Constructor Summary
PrinterURI sample code for javax.print.attribute.standard.PrinterURI.PrinterURI(java.net.URI) definition code for javax.print.attribute.standard.PrinterURI.PrinterURI(java.net.URI) (URI sample code for java.net.URI definition code for java.net.URI  uri)
          Constructs a new PrinterURI attribute with the specified URI.
 
Method Summary
 boolean equals sample code for javax.print.attribute.standard.PrinterURI.equals(java.lang.Object) definition code for javax.print.attribute.standard.PrinterURI.equals(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  object)
          Returns whether this printer name attribute is equivalent to the passed in object.
 Class sample code for java.lang.Class definition code for java.lang.Class <? extends Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.Attribute > getCategory sample code for javax.print.attribute.standard.PrinterURI.getCategory() definition code for javax.print.attribute.standard.PrinterURI.getCategory() ()
          Get the printing attribute class which is to be used as the "category" for this printing attribute value.
 String sample code for java.lang.String definition code for java.lang.String getName sample code for javax.print.attribute.standard.PrinterURI.getName() definition code for javax.print.attribute.standard.PrinterURI.getName() ()
          Get the name of the category of which this attribute value is an instance.
 
Methods inherited from class javax.print.attribute.URISyntax sample code for javax.print.attribute.URISyntax definition code for javax.print.attribute.URISyntax
getURI sample code for javax.print.attribute.URISyntax.getURI() definition code for javax.print.attribute.URISyntax.getURI() , hashCode sample code for javax.print.attribute.URISyntax.hashCode() definition code for javax.print.attribute.URISyntax.hashCode() , toString sample code for javax.print.attribute.URISyntax.toString() definition code for javax.print.attribute.URISyntax.toString()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

PrinterURI sample code for javax.print.attribute.standard.PrinterURI(java.net.URI) definition code for javax.print.attribute.standard.PrinterURI(java.net.URI)

public PrinterURI(URI sample code for java.net.URI definition code for java.net.URI  uri)
Constructs a new PrinterURI attribute with the specified URI.

Parameters:
uri - URI of the printer
Throws:
NullPointerException sample code for java.lang.NullPointerException definition code for java.lang.NullPointerException - (unchecked exception) Thrown if uri is null.
Method Detail

equals sample code for javax.print.attribute.standard.PrinterURI.equals(java.lang.Object) definition code for javax.print.attribute.standard.PrinterURI.equals(java.lang.Object)

public boolean equals(Object sample code for java.lang.Object definition code for java.lang.Object  object)
Returns whether this printer name attribute is equivalent to the passed in object. To be equivalent, all of the following conditions must be true:
  1. object is not null.
  2. object is an instance of class PrinterURI.
  3. This PrinterURI attribute's underlying URI and object's underlying URI are equal.

Overrides:
equals sample code for javax.print.attribute.URISyntax.equals(java.lang.Object) definition code for javax.print.attribute.URISyntax.equals(java.lang.Object) in class URISyntax sample code for javax.print.attribute.URISyntax definition code for javax.print.attribute.URISyntax
Parameters:
object - Object to compare to.
Returns:
True if object is equivalent to this PrinterURI attribute, false otherwise.
See Also:
Object.hashCode() sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

getCategory sample code for javax.print.attribute.standard.PrinterURI.getCategory() definition code for javax.print.attribute.standard.PrinterURI.getCategory()

public final Class sample code for java.lang.Class definition code for java.lang.Class <? extends Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.Attribute > getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.

For class PrinterURI and any vendor-defined subclasses, the category is class PrinterURI itself.

Specified by:
getCategory sample code for javax.print.attribute.Attribute.getCategory() definition code for javax.print.attribute.Attribute.getCategory() in interface Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.Attribute
Returns:
Printing attribute class (category), an instance of class java.lang.Class sample code for java.lang.Class definition code for java.lang.Class .

getName sample code for javax.print.attribute.standard.PrinterURI.getName() definition code for javax.print.attribute.standard.PrinterURI.getName()

public final String sample code for java.lang.String definition code for java.lang.String  getName()
Get the name of the category of which this attribute value is an instance.

For class PrinterURI and any vendor-defined subclasses, the category name is "printer-uri".

Specified by:
getName sample code for javax.print.attribute.Attribute.getName() definition code for javax.print.attribute.Attribute.getName() in interface Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.Attribute
Returns:
Attribute category name.