com.icl.saxon.om
Class DocumentPool
java.lang.Object
|
+--com.icl.saxon.om.DocumentPool
- public final class DocumentPool
- extends java.lang.Object
An object representing the collection of documents handled during
a single transformation
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DocumentPool
public DocumentPool()
add
public int add(DocumentInfo doc,
java.lang.String name)
- Add a document to the pool, and allocate a document number
- Parameters:
doc
- The DocumentInfo for the document in questionname
- The name of the document. May be null, in the case of
the principal source document.- Returns:
- the document number, unique within this document pool
getDocumentNumber
public int getDocumentNumber(DocumentInfo doc)
- Get the document number of a document that is already in the pool
- Returns:
- the document number, or -1 if it is not found in the pool
find
public DocumentInfo find(java.lang.String name)
- Get the document with a given name
- Returns:
- the DocumentInfo with the given name if it exists,
or null if it is not found.
getNumberOfDocuments
public int getNumberOfDocuments()
- Get the number of documents in the pool