|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Fields inherited from interface com.icl.saxon.om.NodeInfo |
ATTRIBUTE, COMMENT, ELEMENT, NAMESPACE, NODE, NODE_TYPE_NAMES, NONE, NUMBER_OF_TYPES, PI, ROOT, TEXT |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Method Summary | |
NodeSetValue |
getAllElements(int fingerprint)
Get a list of all elements with a given name |
int |
getDocumentNumber()
Get a unique number identifying this document |
PreparedStyleSheet |
getEmbeddedStylesheet(java.lang.String id)
Prepare an embedded stylesheet within this document |
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 |
ElementInfo |
selectID(java.lang.String id)
Get the element with a given ID, if any |
void |
setKeyIndex(KeyManager keymanager,
int fingerprint,
java.lang.Object index)
Set the index for a given key |
void |
setNamePool(NamePool pool)
Set the name pool used for all names in this document |
Methods inherited from interface com.icl.saxon.om.NodeInfo |
copy, copyStringValue, defaultAction, enumerateChildren, getAllChildNodes, getAttributeValue, getAttributeValue, getAttributeValue, getDisplayName, getDocumentElement, getDocumentRoot, getFingerprint, getIndex, getLineNumber, getLocalName, getNameCode, getNextInDocument, getNodeName, getNodeType, getNumberOfChildren, getPath, getPrefix, getPreviousInDocument, getSequenceNumber, getSequentialKey, getSystemId, getURI, getURICode, getValue, isDocumentElement, isSameNode |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Method Detail |
public void setNamePool(NamePool pool)
public NamePool getNamePool()
public ElementInfo selectID(java.lang.String id) throws org.xml.sax.SAXException
id
- the required ID valuepublic java.util.Hashtable getKeyIndex(KeyManager keymanager, int fingerprint) throws org.xml.sax.SAXException
keymanager
- The key manager managing this keyfingerprint
- The fingerprint of the name of the key (unique with the key manager)SAXExcetpion
- If the index is under construction, throws an
exception, as this implies a key defined in terms of itself.public void setKeyIndex(KeyManager keymanager, int fingerprint, java.lang.Object index) throws org.xml.sax.SAXException
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 value; or the string
"under construction" to indicate that the index is under construction.public int getDocumentNumber()
public NodeSetValue getAllElements(int fingerprint)
fingerprint
- The fingerprint of the required namepublic java.lang.String getUnparsedEntity(java.lang.String name)
name
- the name of the entitypublic PreparedStyleSheet getEmbeddedStylesheet(java.lang.String id) throws org.xml.sax.SAXException
id
- The id of the required embedded stylesheet
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |