Class DocumentWrapper
java.lang.Object
com.icl.saxon.jdom.NodeWrapper
com.icl.saxon.jdom.DocumentWrapper
- All Implemented Interfaces:
DocumentInfo, NodeInfo, Source
The root node of an XPath tree. (Or equivalently, the tree itself).
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.
- Author:
- Michael H. Kay
-
Nested Class Summary
Nested classes/interfaces inherited from class NodeWrapper
NodeWrapper.AncestorEnumeration -
Field Summary
FieldsFields inherited from class NodeWrapper
docWrapper, index, node, nodeType, parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKeyIndex(KeyManager keyManager, int fingerprint) Get the index for a given keyGet the name pool used for the names in this documentgetUnparsedEntity(String name) Get the unparsed entity with a given nameGet the element with a given ID, if anyvoidsetKeyIndex(KeyManager keyManager, int fingerprint, Hashtable index) Set the index for a given keyvoidsetNamePool(NamePool pool) Set the name pool used for all names in this documentMethods inherited from class NodeWrapper
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, setSystemIdMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface NodeInfo
compareOrder, copy, copyStringValue, generateId, getAttributeValue, getAttributeValue, getBaseURI, getDisplayName, getDocumentRoot, getEnumeration, getFingerprint, getLineNumber, getLocalName, getNameCode, getNodeType, getParent, getPrefix, getStringValue, getSystemId, getURI, hasChildNodes, isSameNodeInfo, outputNamespaceNodesMethods inherited from interface Source
isEmpty, setSystemId
-
Field Details
-
keyTable
-
namePool
-
baseURI
-
-
Constructor Details
-
DocumentWrapper
-
-
Method Details
-
setNamePool
Set the name pool used for all names in this document- Specified by:
setNamePoolin interfaceDocumentInfo
-
getNamePool
Get the name pool used for the names in this document- Specified by:
getNamePoolin interfaceDocumentInfo
-
selectID
Get the element with a given ID, if any- Specified by:
selectIDin interfaceDocumentInfo- Parameters:
id- the required ID value- Returns:
- null: JDOM does not provide any information about attribute types.
-
getKeyIndex
Get the index for a given key- Specified by:
getKeyIndexin interfaceDocumentInfo- Parameters:
keyManager- The key manager managing this keyfingerprint- The fingerprint of the name of the key (unique with the key manager)keymanager- The key manager managing this key- Returns:
- The index, if one has been built, in the form of a Hashtable that maps the key value to a list of nodes having that key value. If no index has been built, returns null.
-
setKeyIndex
Set the index for a given key- Specified by:
setKeyIndexin interfaceDocumentInfo- Parameters:
keyManager- 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 valuekeymanager- The key manager managing this key
-
getUnparsedEntity
Get the unparsed entity with a given name- Specified by:
getUnparsedEntityin interfaceDocumentInfo- Parameters:
name- the name of the entity- Returns:
- null: JDOM does not provide access to unparsed entities
-