net.sf.saxon.om
public final class DocumentPool extends Object
From Saxon 7.2, the function of allocating document numbers is performed by the NamePool, not by the DocumentPool. This has a number of effects: in particular it allows operations involving multiple documents (such as generateId() and document()) to occur in a free-standing XPath environment.
Method Summary | |
---|---|
void | add(DocumentInfo doc, String name)
Add a document to the pool |
DocumentInfo | discard(DocumentInfo doc)
Release a document from the document pool. |
DocumentInfo | find(String name)
Get the document with a given name |
String | getDocumentURI(NodeInfo doc)
Get the URI for a given document node, if it is present in the pool. |
Parameters: doc The DocumentInfo for the document in question name The name of the document.
Returns: the DocumentInfo with the given name if it exists, or null if it is not found.
Parameters: doc The document node
Returns: The uri of the document node, if present in the pool, or null otherwise