org.exolab.adaptx.xml

Class DOMURILocation

public final class DOMURILocation extends ObjectURILocation

An implementation of ObjectURILocation for a DOM Node

Author: Keith Visco

Constructor Summary
DOMURILocation(Node node, String href)
Creates a new DOMURILocation
Method Summary
StringgetAbsoluteURI()
Returns the absolute URI for this URILocation
StringgetBaseURI()
Returns the base location of this URILocation.
NodegetNode()
Returns the DOM Node from this URILocation
ObjectgetObject()
Returns the Object from this ObjectURILocation.
ReadergetReader()
Returns the reader for this URILocation.
StringgetRelativeURI()
Returns the relative URI for this URILocation
StringtoString()
Returns the String representation of this URILocation.

Constructor Detail

DOMURILocation

public DOMURILocation(Node node, String href)
Creates a new DOMURILocation

Method Detail

getAbsoluteURI

public String getAbsoluteURI()
Returns the absolute URI for this URILocation

Returns: the absolute URI for this URILocation

See Also: getRelativeURI getBaseURI

getBaseURI

public String getBaseURI()
Returns the base location of this URILocation. If this URILocation is an URL, the base location will be equivalent to the document base for the URL.

Returns: the base location of this URILocation

See Also: getAbsoluteURI getRelativeURI

getNode

public Node getNode()
Returns the DOM Node from this URILocation

Returns: the DOM Node from this URILocation

getObject

public Object getObject()
Returns the Object from this ObjectURILocation.

Returns: the Object from this ObjectURILocation

See Also: DOMURILocation

getReader

public Reader getReader()
Returns the reader for this URILocation.

This method always return null. Use getObject() or getNode() methods instead.

Returns: a Reader for the resource represented by this URILocation

Throws: java.io.FileNotFoundException java.io.IOException

getRelativeURI

public String getRelativeURI()
Returns the relative URI for this URILocation

Returns: the relative URI for this URILocation

See Also: getAbsoluteURI getBaseURI

toString

public String toString()
Returns the String representation of this URILocation.

Returns: the String representation of this URILocation