Package org.exolab.adaptx.xml
Class DOMURILocation
java.lang.Object
org.exolab.adaptx.net.URILocation
org.exolab.adaptx.net.ObjectURILocation
org.exolab.adaptx.xml.DOMURILocation
An implementation of ObjectURILocation for a DOM Node
- Author:
- Keith Visco
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the absolute URI for this URILocationReturns the base location of this URILocation.getNode()
Returns the DOM Node from this URILocationReturns the Object from this ObjectURILocation.Returns the reader for this URILocation.Returns the relative URI for this URILocationtoString()
Returns the String representation of this URILocation.
-
Constructor Details
-
DOMURILocation
Creates a new DOMURILocation
-
-
Method Details
-
getAbsoluteURI
Returns the absolute URI for this URILocation- Specified by:
getAbsoluteURI
in classURILocation
- Returns:
- the absolute URI for this URILocation
- See Also:
-
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.- Specified by:
getBaseURI
in classURILocation
- Returns:
- the base location of this URILocation
- See Also:
-
getNode
Returns the DOM Node from this URILocation- Returns:
- the DOM Node from this URILocation
-
getObject
Returns the Object from this ObjectURILocation.- Specified by:
getObject
in classObjectURILocation
- Returns:
- the Object from this ObjectURILocation
- See Also:
-
getReader
Returns the reader for this URILocation.This method always return null. Use getObject() or getNode() methods instead.
- Specified by:
getReader
in classURILocation
- Returns:
- a Reader for the resource represented by this URILocation
- Throws:
FileNotFoundException
IOException
-
getRelativeURI
Returns the relative URI for this URILocation- Specified by:
getRelativeURI
in classURILocation
- Returns:
- the relative URI for this URILocation
- See Also:
-
toString
Returns the String representation of this URILocation.- Overrides:
toString
in classURILocation
- Returns:
- the String representation of this URILocation
-