org.apache.batik.bridge.svg12
Class SVG12URIResolver
java.lang.Object
org.apache.batik.bridge.URIResolver
org.apache.batik.bridge.svg12.SVG12URIResolver
public class SVG12URIResolver
- extends URIResolver
A URIResolver for SVG 1.2 documents. This is to allow resolution of
fragment IDs within shadow trees to work properly.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SVG12URIResolver
public SVG12URIResolver(org.w3c.dom.svg.SVGDocument doc,
DocumentLoader dl)
- Creates a new SVG12URIResolver object.
getRefererBaseURI
protected String getRefererBaseURI(Element ref)
- Returns the base URI of the referer element.
- Overrides:
getRefererBaseURI
in class URIResolver
getNodeByFragment
protected Node getNodeByFragment(String frag,
Element ref)
- Returns the node referenced by the given fragment identifier.
This is called when the whole URI just contains a fragment identifier
and there is no XML Base URI in effect.
- Overrides:
getNodeByFragment
in class URIResolver
- Parameters:
frag
- the URI fragmentref
- the context element from which to resolve the URI fragment
Copyright © 2017 Apache Software Foundation. All Rights Reserved.