com.icl.saxon.jdom
Class DocumentWrapper
- DocumentInfo, NodeInfo, Source
public class DocumentWrapper
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.
compareOrder, copy, copyStringValue, generateId, getAttributeValue, getAttributeValue, getBaseURI, getDisplayName, getDocumentRoot, getEnumeration, getFingerprint, getLineNumber, getLocalName, getNameCode, getNode, getNodeType, getParent, getPrefix, getStringValue, getSystemId, getURI, hasChildNodes, isSameNode, makeWrapper, outputNamespaceNodes, setSystemId |
baseURI
protected String baseURI
keyTable
protected Hashtable keyTable
DocumentWrapper
public DocumentWrapper(Document doc,
String baseURI)
getKeyIndex
public Hashtable getKeyIndex(KeyManager keyManager,
int fingerprint) Get the index for a given key
- getKeyIndex in interface DocumentInfo
fingerprint - The fingerprint of the name of the key (unique with the key manager)
- 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.
getUnparsedEntity
public String getUnparsedEntity(String name)
Get the unparsed entity with a given name
- getUnparsedEntity in interface DocumentInfo
name - the name of the entity
- null: JDOM does not provide access to unparsed entities
selectID
public NodeInfo selectID(String id)
Get the element with a given ID, if any
- selectID in interface DocumentInfo
id - the required ID value
- null: JDOM does not provide any information about attribute types.
setKeyIndex
public void setKeyIndex(KeyManager keyManager,
int fingerprint,
Hashtable index) Set the index for a given key
- setKeyIndex in interface DocumentInfo
fingerprint - 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 value