org.apache.batik.bridge
public class URIResolver extends Object
| Field Summary | |
|---|---|
| protected SVGOMDocument | document
The reference document. |
| protected DocumentLoader | documentLoader
The document loader. |
| protected String | documentURI
The document URI. |
| Constructor Summary | |
|---|---|
| URIResolver(SVGDocument doc, DocumentLoader dl)
Creates a new URI resolver object. | |
| Method Summary | |
|---|---|
| Element | getElement(String uri, Element ref)
Imports the Element referenced by the given URI on Element
ref. |
| Node | getNode(String uri, Element ref)
Imports the Node referenced by the given URI on Element
ref. |
| protected Node | getNodeByFragment(String frag, Element ref)
Returns the node referenced by the given fragment identifier.
|
| protected String | getRefererBaseURI(Element ref)
Returns the base URI of the referer element. |
Parameters: doc The reference document. dl The document loader.
Parameters: uri The element URI. ref The Element in the DOM tree to evaluate uri from.
Returns: The referenced element or null if element can't be found.
Parameters: uri The element URI. ref The Element in the DOM tree to evaluate uri from.
Returns: The referenced Node/Document or null if element can't be found.
Parameters: frag the URI fragment ref the context element from which to resolve the URI fragment