|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.bridge.URIResolver
public class URIResolver
This class is used to resolve the URI that can be found in a SVG document.
Field Summary | |
---|---|
protected SVGOMDocument |
document
The reference document. |
protected DocumentLoader |
documentLoader
The document loader. |
protected String |
documentURI
The document URI. |
Constructor Summary | |
---|---|
URIResolver(org.w3c.dom.svg.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SVGOMDocument document
protected String documentURI
protected DocumentLoader documentLoader
Constructor Detail |
---|
public URIResolver(org.w3c.dom.svg.SVGDocument doc, DocumentLoader dl)
doc
- The reference document.dl
- The document loader.Method Detail |
---|
public Element getElement(String uri, Element ref) throws MalformedURLException, IOException
ref
.
uri
- The element URI.ref
- The Element in the DOM tree to evaluate uri
from.
MalformedURLException
IOException
public Node getNode(String uri, Element ref) throws MalformedURLException, IOException, SecurityException
ref
.
uri
- The element URI.ref
- The Element in the DOM tree to evaluate uri
from.
MalformedURLException
IOException
SecurityException
protected String getRefererBaseURI(Element ref)
protected Node getNodeByFragment(String frag, Element ref)
frag
- the URI fragmentref
- the context element from which to resolve the URI fragment
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |