javax.print.attribute
Class URISyntax

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.print.attribute.URISyntax
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
Direct Known Subclasses:
Destination sample code for javax.print.attribute.standard.Destination definition code for javax.print.attribute.standard.Destination , PrinterMoreInfo sample code for javax.print.attribute.standard.PrinterMoreInfo definition code for javax.print.attribute.standard.PrinterMoreInfo , PrinterMoreInfoManufacturer sample code for javax.print.attribute.standard.PrinterMoreInfoManufacturer definition code for javax.print.attribute.standard.PrinterMoreInfoManufacturer , PrinterURI sample code for javax.print.attribute.standard.PrinterURI definition code for javax.print.attribute.standard.PrinterURI

public abstract class URISyntax
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements 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

Class URISyntax is an abstract base class providing the common implementation of all attributes whose value is a Uniform Resource Identifier (URI). Once constructed, a URI attribute's value is immutable.

See Also:
Serialized Form

Constructor Summary
protected URISyntax sample code for javax.print.attribute.URISyntax.URISyntax(java.net.URI) definition code for javax.print.attribute.URISyntax.URISyntax(java.net.URI) (URI sample code for java.net.URI definition code for java.net.URI  uri)
          Constructs a URI attribute with the specified URI.
 
Method Summary
 boolean equals sample code for javax.print.attribute.URISyntax.equals(java.lang.Object) definition code for javax.print.attribute.URISyntax.equals(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  object)
          Returns whether this URI attribute is equivalent to the passed in object.
 URI sample code for java.net.URI definition code for java.net.URI getURI sample code for javax.print.attribute.URISyntax.getURI() definition code for javax.print.attribute.URISyntax.getURI() ()
          Returns this URI attribute's URI value.
 int hashCode sample code for javax.print.attribute.URISyntax.hashCode() definition code for javax.print.attribute.URISyntax.hashCode() ()
          Returns a hashcode for this URI attribute.
 String sample code for java.lang.String definition code for java.lang.String toString sample code for javax.print.attribute.URISyntax.toString() definition code for javax.print.attribute.URISyntax.toString() ()
          Returns a String identifying this URI attribute.
 
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

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

protected URISyntax(URI sample code for java.net.URI definition code for java.net.URI  uri)
Constructs a URI attribute with the specified URI.

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

getURI sample code for javax.print.attribute.URISyntax.getURI() definition code for javax.print.attribute.URISyntax.getURI()

public URI sample code for java.net.URI definition code for java.net.URI  getURI()
Returns this URI attribute's URI value.

Returns:
the URI.

hashCode sample code for javax.print.attribute.URISyntax.hashCode() definition code for javax.print.attribute.URISyntax.hashCode()

public int hashCode()
Returns a hashcode for this URI attribute.

Overrides:
hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
A hashcode value for this object.
See Also:
Object.equals(java.lang.Object) sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

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

public boolean equals(Object sample code for java.lang.Object definition code for java.lang.Object  object)
Returns whether this URI 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 URISyntax.
  3. This URI attribute's underlying URI and object's underlying URI are equal.

Overrides:
equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) in class Object sample code for java.lang.Object definition code for java.lang.Object
Parameters:
object - Object to compare to.
Returns:
True if object is equivalent to this URI 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

toString sample code for javax.print.attribute.URISyntax.toString() definition code for javax.print.attribute.URISyntax.toString()

public String sample code for java.lang.String definition code for java.lang.String  toString()
Returns a String identifying this URI attribute. The String is the string representation of the attribute's underlying URI.

Overrides:
toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
A String identifying this object.