Top Description Fields Constructors Methods
javax.print.attribute

public abstract Class URISyntax

extends Object
implements Serializable, Cloneable
Class Inheritance
All Implemented Interfaces
java.lang.Cloneable, java.io.Serializable
Known Direct Subclasses
javax.print.attribute.standard.Destination, javax.print.attribute.standard.PrinterMoreInfo, javax.print.attribute.standard.PrinterMoreInfoManufacturer, javax.print.attribute.standard.PrinterURI
Imports
java.io.Serial, .Serializable, java.net.URI

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

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Use serialVersionUID from JDK 1.4 for interoperability.

private URI
uri

URI value of this URI attribute.

Constructor Summary

AccessConstructor and Description
protected
URISyntax(URI
the URI
uri
)

Constructs a URI attribute with the specified URI.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if object is equivalent to this URI attribute, false otherwise
equals
(Object
Object to compare to
object
)

Overrides java.lang.Object.equals.

Returns whether this URI attribute is equivalent to the passed in object.
public URI

Returns:

the URI
getURI
()

Returns this URI attribute's URI value.

public int

Returns:

a hashcode value for this object
hashCode
()

Overrides java.lang.Object.hashCode.

Returns a hashcode for this URI attribute.
public String

Returns:

a String identifying this object
toString
()

Overrides java.lang.Object.toString.

Returns a String identifying this URI attribute.
private static URI
verify(URI uri)

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Use serialVersionUID from JDK 1.4 for interoperability.

Annotations
@Serial
uriback to summary
private URI uri

URI value of this URI attribute.

Constructor Detail

URISyntaxback to summary
protected URISyntax(URI uri)

Constructs a URI attribute with the specified URI.

Parameters
uri:URI

the URI

Exceptions
NullPointerException:
if uri is null

Method Detail

equalsback to summary
public boolean equals(Object object)

Overrides java.lang.Object.equals.

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.
Parameters
object:Object

Object to compare to

Returns:boolean

true if object is equivalent to this URI attribute, false otherwise

getURIback to summary
public URI getURI()

Returns this URI attribute's URI value.

Returns:URI

the URI

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Returns a hashcode for this URI attribute.

Returns:int

a hashcode value for this object

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns a String identifying this URI attribute. The String is the string representation of the attribute's underlying URI.

Returns:String

a String identifying this object

verifyback to summary
private static URI verify(URI uri)