FileDocCategorySizeDatePackage
URISyntax.javaAPI DocJava SE 5 API2609Fri Aug 26 14:57:44 BST 2005javax.print.attribute

URISyntax

public abstract class URISyntax extends Object implements Serializable, 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.

author
Alan Kaminsky

Fields Summary
private static final long
serialVersionUID
private URI
uri
URI value of this URI attribute.
Constructors Summary
protected URISyntax(URI uri)
Constructs a URI attribute with the specified URI.

param
uri URI.
exception
NullPointerException (unchecked exception) Thrown if uri is null.


                                     
       
	this.uri = verify (uri);
    
Methods Summary
public booleanequals(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.

param
object Object to compare to.
return
True if object is equivalent to this URI attribute, false otherwise.

	return(object != null &&
	       object instanceof URISyntax &&
	       this.uri.equals (((URISyntax) object).uri));
    
public java.net.URIgetURI()
Returns this URI attribute's URI value.

return
the URI.

	return uri;
    
public inthashCode()
Returns a hashcode for this URI attribute.

return
A hashcode value for this object.

	return uri.hashCode();
    
public java.lang.StringtoString()
Returns a String identifying this URI attribute. The String is the string representation of the attribute's underlying URI.

return
A String identifying this object.

	return uri.toString();
    
private static java.net.URIverify(java.net.URI uri)

	if (uri == null) {
	    throw new NullPointerException(" uri is null");
	}
	return uri;