javax.print.attribute

Class URISyntax

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.
Constructor Summary
protected URISyntax(URI uri)
Creates a URISyntax object.
Method Summary
booleanequals(Object obj)
Tests if the given object is equal to this object.
URIgetURI()
Returns the URI value of this syntax object.
inthashCode()
Returns the hashcode for this object.
StringtoString()
Returns the string representation for this object.

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.

Parameters: obj the object to test

Returns: true if both objects are equal, false otherwise.

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.

Returns: The hashcode.

toString

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

Returns: The string representation.