|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.om.DocumentPool
public final class DocumentPool
An object representing the collection of documents handled during a single transformation.
The function of allocating document numbers is performed by the DocumentNumberAllocator in the Configuration, 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.
Constructor Summary | |
---|---|
DocumentPool()
|
Method Summary | |
---|---|
void |
add(DocumentInfo doc,
String uri)
Add a document to the pool |
DocumentInfo |
discard(DocumentInfo doc)
Release a document from the document pool. |
DocumentInfo |
find(String uri)
Get the document with a given document-uri |
String |
getDocumentURI(NodeInfo doc)
Get the URI for a given document node, if it is present in the pool. |
boolean |
isMarkedUnavailable(String uri)
Ask whether a document URI is in the set of URIs known to be unavailable, because doc-available() has been previously called and has returned false |
void |
markUnavailable(String uri)
Add a document URI to the set of URIs known to be unavailable (because doc-available() has returned false |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentPool()
Method Detail |
---|
public void add(DocumentInfo doc, String uri)
doc
- The DocumentInfo for the document in questionuri
- The document-uri property of the document.public DocumentInfo find(String uri)
uri
- The document-uri property of the document.
public String getDocumentURI(NodeInfo doc)
doc
- The document node
public DocumentInfo discard(DocumentInfo doc)
doc
- the document to be discarded from the pool
public void markUnavailable(String uri)
uri
- the URI of the unavailable documentpublic boolean isMarkedUnavailable(String uri)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |