javax.print.attribute
Class URISyntax

java.lang.Object
  extended by javax.print.attribute.URISyntax
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
Destination, PrinterMoreInfo, PrinterMoreInfoManufacturer, PrinterURI

public abstract class URISyntax
extends Object
implements Cloneable, Serializable

URISyntax is the abstract base class of all attribute classes having an Uniform Resource Identifier URI as value.

See Also:
Serialized Form

Constructor Summary
protected URISyntax(URI uri)
          Creates a URISyntax object.
 
Method Summary
 boolean equals(Object obj)
          Tests if the given object is equal to this object.
 URI getURI()
          Returns the URI value of this syntax object.
 int hashCode()
          Returns the hashcode for this object.
 String toString()
          Returns the string representation for this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

URISyntax

protected URISyntax(URI uri)
Creates a URISyntax object.

Parameters:
uri - the URI value for the syntax
Throws:
NullPointerException - if 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 Object
Parameters:
obj - the object to test
Returns:
true if both objects are equal, false otherwise.
See Also:
Object.hashCode()

getURI

public URI getURI()
Returns the URI value of this syntax object.

Returns:
The URI.

hashCode

public int hashCode()
Returns the hashcode for this object.

Overrides:
hashCode in class Object
Returns:
The hashcode.
See Also:
Object.equals(Object), System.identityHashCode(Object)

toString

public String toString()
Returns the string representation for this object.

Overrides:
toString in class Object
Returns:
The string representation.
See Also:
Object.getClass(), Object.hashCode(), Class.getName(), Integer.toHexString(int)