| |
|
| java.lang.Object javax.print.attribute.URISyntax
All known Subclasses: javax.print.attribute.standard.PrinterMoreInfoManufacturer, javax.print.attribute.standard.PrinterMoreInfo, javax.print.attribute.standard.PrinterURI, javax.print.attribute.standard.Destination,
URISyntax | abstract public class URISyntax implements Serializable,Cloneable(Code) | | 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 |
Constructor Summary | |
protected | URISyntax(URI uri) Constructs a URI attribute with the specified URI. |
Method Summary | |
public boolean | equals(Object object) Returns whether this URI attribute is equivalent to the passed in
object. | public URI | getURI() Returns this URI attribute's URI value. | public int | hashCode() Returns a hashcode for this URI attribute. | public String | toString() Returns a String identifying this URI attribute. |
URISyntax | protected URISyntax(URI uri)(Code) | | Constructs a URI attribute with the specified URI.
Parameters: uri - URI. exception: NullPointerException - (unchecked exception) Thrown if uri is null. |
equals | public boolean equals(Object object)(Code) | | Returns whether this URI attribute is equivalent to the passed in
object.
To be equivalent, all of the following conditions must be true:
-
object is not null.
-
object is an instance of class URISyntax.
-
This URI attribute's underlying URI and
object 's
underlying URI are equal.
Parameters: object - Object to compare to. True if object is equivalent to this URIattribute, false otherwise. |
getURI | public URI getURI()(Code) | | Returns this URI attribute's URI value.
the URI. |
hashCode | public int hashCode()(Code) | | Returns a hashcode for this URI attribute.
A hashcode value for this object. |
toString | public String toString()(Code) | | Returns a String identifying this URI attribute. The String is the
string representation of the attribute's underlying URI.
A String identifying this object. |
|
|
|