public class DocumentWrapper extends NodeWrapper implements DocumentInfo
This class should have been named Root; it is used not only for the root of a document, but also for the root of a result tree fragment, which is not constrained to contain a single top-level element.
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
baseURI |
protected java.util.Hashtable |
keyTable |
protected NamePool |
namePool |
docWrapper, index, node, nodeType, parent| Constructor and Description |
|---|
DocumentWrapper(Document doc,
java.lang.String baseURI) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Hashtable |
getKeyIndex(KeyManager keyManager,
int fingerprint)
Get the index for a given key
|
NamePool |
getNamePool()
Get the name pool used for the names in this document
|
java.lang.String |
getUnparsedEntity(java.lang.String name)
Get the unparsed entity with a given name
|
NodeInfo |
selectID(java.lang.String id)
Get the element with a given ID, if any
|
void |
setKeyIndex(KeyManager keyManager,
int fingerprint,
java.util.Hashtable index)
Set the index for a given key
|
void |
setNamePool(NamePool pool)
Set the name pool used for all names in this document
|
compareOrder, copy, copyStringValue, generateId, getAttributeValue, getAttributeValue, getBaseURI, getDisplayName, getDocumentRoot, getEnumeration, getFingerprint, getLineNumber, getLocalName, getNameCode, getNode, getNodeType, getParent, getPrefix, getStringValue, getSystemId, getURI, hasChildNodes, isSameNodeInfo, makeWrapper, outputNamespaceNodes, setSystemIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompareOrder, copy, copyStringValue, generateId, getAttributeValue, getAttributeValue, getBaseURI, getDisplayName, getDocumentRoot, getEnumeration, getFingerprint, getLineNumber, getLocalName, getNameCode, getNodeType, getParent, getPrefix, getStringValue, getSystemId, getURI, hasChildNodes, isSameNodeInfo, outputNamespaceNodesprotected java.util.Hashtable keyTable
protected NamePool namePool
protected java.lang.String baseURI
public void setNamePool(NamePool pool)
setNamePool in interface DocumentInfopublic NamePool getNamePool()
getNamePool in interface DocumentInfopublic NodeInfo selectID(java.lang.String id)
selectID in interface DocumentInfoid - the required ID valuepublic java.util.Hashtable getKeyIndex(KeyManager keyManager, int fingerprint)
getKeyIndex in interface DocumentInfokeymanager - The key manager managing this keyfingerprint - The fingerprint of the name of the key (unique with the key manager)public void setKeyIndex(KeyManager keyManager, int fingerprint, java.util.Hashtable index)
setKeyIndex in interface DocumentInfokeymanager - The key manager managing this keyfingerprint - The fingerprint of the name of the key (unique with the key manager)index - the index, in the form of a Hashtable that
maps the key value to a list of nodes having that key valuepublic java.lang.String getUnparsedEntity(java.lang.String name)
getUnparsedEntity in interface DocumentInfoname - the name of the entity