|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xpath.SourceTreeManager
This class bottlenecks all management of source trees. The methods in this class should allow easy garbage collection of source trees, and should centralize parsing for those source trees.
Constructor Summary | |
SourceTreeManager()
|
Method Summary | |
Node |
findNodeFromURL(java.lang.String base,
java.lang.String url,
Locator locator)
Given a URL, find the node associated with that document. |
java.lang.String |
findURIFromDoc(Document owner)
Given a document, find the URL associated with that document. |
Node |
getDOMNode(InputSource source,
Locator locator)
Try to create a DOM source tree from the input source. |
Node |
getSourceTree(InputSource source,
Locator locator)
Get the source tree from the input source. |
Node |
getSourceTree(java.lang.String base,
java.lang.String urlString,
Locator locator)
Get the source tree from the a base URL and a URL string. |
XMLReader |
getXMLReader(InputSource inputSource,
Locator locator)
This method returns the SAX2 parser to use with the InputSource obtained from this URI. |
void |
putDocumentInCache(Node n,
InputSource source)
Put the source tree root node in the document cache. |
InputSource |
resolveURI(java.lang.String base,
java.lang.String urlString,
Locator locator)
This will be called by the processor when it encounters an xsl:include, xsl:import, or document() function. |
void |
setEntityResolver(EntityResolver resolver)
|
void |
setURIResolver(URIResolver resolver)
Set an object that will be used to resolve URIs used in document(), etc. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public SourceTreeManager()
Method Detail |
public void setURIResolver(URIResolver resolver)
resolver
- An object that implements the URIResolver interface,
or null.public void setEntityResolver(EntityResolver resolver)
public java.lang.String findURIFromDoc(Document owner)
owner
- Document that was previously processed by this liaison.public InputSource resolveURI(java.lang.String base, java.lang.String urlString, Locator locator) throws TransformException, java.io.IOException
base
- The base URI that should be used.uri
- Value from an xsl:import or xsl:include's href attribute,
or a URI specified in the document() function.public void putDocumentInCache(Node n, InputSource source)
public Node findNodeFromURL(java.lang.String base, java.lang.String url, Locator locator) throws TransformException
url
- public Node getSourceTree(java.lang.String base, java.lang.String urlString, Locator locator) throws TransformException
public Node getSourceTree(InputSource source, Locator locator) throws TransformException
public Node getDOMNode(InputSource source, Locator locator) throws TransformException
public XMLReader getXMLReader(InputSource inputSource, Locator locator) throws TransformException
inputSource
- The value returned from the EntityResolver.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |