com.fatdog.xmlEngine
Class QueryDocumentTree

java.lang.Object
  extended bycom.fatdog.xmlEngine.NodeTree
      extended bycom.fatdog.xmlEngine.QueryDocumentTree

public class QueryDocumentTree
extends NodeTree

A NodeTree optimized to hold constructed nodes.

Version:
0.6e
Author:
Howard Katz, howardk@fatdog.com

Field Summary
static int ELEMENT_CTOR
           
static int ENCLOSED_RESULTS
           
static int RESERVED
           
 
Fields inherited from class com.fatdog.xmlEngine.NodeTree
ALL_NODES, ATEXT_IX_TYPE, ATTR, DOC_NODE, E_TEXT_FROM_CHAR, E_TEXT_TO_CHAR, ELEM, INTS_PER_ENTRY, LOCAL_KEY, NS_MASK, NS_SHIFT, PARENT, PREFIX_KEY, TEXT, TYPE, VOIDED_NODE
 
Constructor Summary
QueryDocumentTree(TreeWalker walker, int numInitialEntries, int allocationPolicy)
           
 
Method Summary
 void addAttribute(java.lang.String qName, java.lang.String value)
           
 void addElementNode(int namespaceIx, int[] keys, int parent, int priorSibling)
           
 void CopyNodesToQueryDocTree(QueryDocumentTree destinationTree, int fromNode)
           
 int endElement()
           
 ResultList getEnclosedResults(int node)
           
 boolean isTopLevelNode(int nodeId)
           
 ResultList newConstructedElement(int nodeId)
           
 ResultList newConstructedTextNode(int nodeId)
           
 int reserveNodeForEnclosedResults()
           
 int startElement(java.lang.String localName, java.lang.String qName, boolean isEnclosed)
           
 
Methods inherited from class com.fatdog.xmlEngine.NodeTree
addAttributeNode, addElementTextNode, asString, asString, attributeText, countNodeTypes, elementHasContent, emitXml, evalAncestor, evalAncestor, evalParent_, evalParent, getAttributeName, getAttributeText, getAttrTextBuffer, getElementName, getElementText, getElemTextBuffer, getId, getIndexManager, getKeys, getLastAddedNode, getLocalKey, getNameKeys_base, getNameKeys, getNamespaceIndex, getNodeCount, getParent_BASE, getParent, getPrefixKey, getRawTree, getType, isFirstSibling_BASE, isLastSibling, namedAncestor, namedChildOfParent, newLeafNodeList, newNamedNodesAtRoot, newNamedParentOfNamedChild, newParentOf, newSiblingList, numAttributesOnElement, printNode, printNode, serialize, setElemTextBuffer, setId, singleNewline, sizeTextBuffer, string, string, subscript, toString, trim, type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESERVED

public static final int RESERVED
See Also:
Constant Field Values

ENCLOSED_RESULTS

public static final int ENCLOSED_RESULTS
See Also:
Constant Field Values

ELEMENT_CTOR

public static final int ELEMENT_CTOR
See Also:
Constant Field Values
Constructor Detail

QueryDocumentTree

public QueryDocumentTree(TreeWalker walker,
                         int numInitialEntries,
                         int allocationPolicy)
Method Detail

startElement

public int startElement(java.lang.String localName,
                        java.lang.String qName,
                        boolean isEnclosed)

addElementNode

public void addElementNode(int namespaceIx,
                           int[] keys,
                           int parent,
                           int priorSibling)
Overrides:
addElementNode in class NodeTree

endElement

public int endElement()

addAttribute

public void addAttribute(java.lang.String qName,
                         java.lang.String value)

reserveNodeForEnclosedResults

public int reserveNodeForEnclosedResults()

getEnclosedResults

public ResultList getEnclosedResults(int node)

isTopLevelNode

public boolean isTopLevelNode(int nodeId)

newConstructedTextNode

public ResultList newConstructedTextNode(int nodeId)

newConstructedElement

public ResultList newConstructedElement(int nodeId)

CopyNodesToQueryDocTree

public void CopyNodesToQueryDocTree(QueryDocumentTree destinationTree,
                                    int fromNode)