org.exolab.adaptx.xml
Class DOMURILocation
public final class DOMURILocation
An implementation of ObjectURILocation for a DOM Node
String | getAbsoluteURI() - Returns the absolute URI for this URILocation
|
String | getBaseURI() - Returns the base location of this URILocation.
|
Node | getNode() - Returns the DOM Node from this URILocation
|
Object | getObject() - Returns the Object from this ObjectURILocation.
|
Reader | getReader() - Returns the reader for this URILocation.
|
String | getRelativeURI() - Returns the relative URI for this URILocation
|
String | toString() - Returns the String representation of
this URILocation.
|
DOMURILocation
public DOMURILocation(Node node,
String href)
Creates a new DOMURILocation
getAbsoluteURI
public String getAbsoluteURI()
Returns the absolute URI for this URILocation
- getAbsoluteURI in interface URILocation
- the absolute URI for this URILocation
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.
- getBaseURI in interface URILocation
- the base location of this URILocation
getAbsoluteURI
, getRelativeURI
getNode
public Node getNode()
Returns the DOM Node from this URILocation
- the DOM Node from this URILocation
getObject
public Object getObject()
Returns the Object from this ObjectURILocation.
- getObject in interface ObjectURILocation
- the Object from this ObjectURILocation
getReader
public Reader getReader()
throws java.io.IOException
Returns the reader for this URILocation.
This method always return null. Use getObject() or
getNode() methods instead.
- getReader in interface URILocation
- a Reader for the resource represented by
this URILocation
getRelativeURI
public String getRelativeURI()
Returns the relative URI for this URILocation
- getRelativeURI in interface URILocation
- the relative URI for this URILocation
getAbsoluteURI
, getBaseURI
toString
public String toString()
Returns the String representation of
this URILocation.
- toString in interface URILocation
- the String representation of this URILocation