org.cdlib.xtf.lazyTree
Class SearchTextImpl

Object
  extended by NodeImpl
      extended by TextImpl
          extended by SearchTextImpl
All Implemented Interfaces:
Source, SourceLocator, FingerprintedNode, Item, NodeInfo, ValueRepresentation, SearchNode

public class SearchTextImpl
extends TextImpl
implements SearchNode

Represents a text node that has been (possibly) modified to reflect query results.

Author:
Martin Haye

Field Summary
 
Fields inherited from class TextImpl
text
 
Fields inherited from class NodeImpl
document, nameCode, nextSibNum, NODE_LETTER, nodeNum, parentNum, prevSibNum
 
Fields inherited from interface NodeInfo
ALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES
 
Fields inherited from interface ValueRepresentation
EMPTY_VALUE_ARRAY
 
Constructor Summary
SearchTextImpl(SearchTree tree)
          Construct
 
Method Summary
protected  long getSequenceNumber()
          Get a unique sequence number for this node.
 void setNextSibNum(int num)
          Establish the next sibling node number
 void setNodeNum(int num)
          Establish the node number
 void setParentNum(int parentNum)
          Establish the parent node number
 void setPrevSibNum(int num)
          Establish the previous sibling node number
 void setStringValue(String newText)
          Establish the text value for this node
 
Methods inherited from class TextImpl
copy, getNodeKind, getStringValue, init
 
Methods inherited from class NodeImpl
atomize, compareOrder, equals, generateId, getAttributeValue, getBaseURI, getColumnNumber, getConfiguration, getDeclaredNamespaces, getDisplayName, getDocumentNumber, getDocumentRoot, getFingerprint, getFirstChild, getLastChild, getLineNumber, getLocalPart, getNameCode, getNamePool, getNextInDocument, getNextSibling, getParent, getPrefix, getPreviousInDocument, getPreviousSibling, getPublicId, getRoot, getStringValueCS, getSystemId, getTypeAnnotation, getTypedValue, getURI, hasChildNodes, hashCode, isSameNodeInfo, iterateAxis, iterateAxis, sendNamespaceDeclarations, setSystemId
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchTextImpl

public SearchTextImpl(SearchTree tree)
Construct

Method Detail

setNodeNum

public void setNodeNum(int num)
Establish the node number

Specified by:
setNodeNum in interface SearchNode

setParentNum

public void setParentNum(int parentNum)
Establish the parent node number

Specified by:
setParentNum in interface SearchNode

setNextSibNum

public void setNextSibNum(int num)
Establish the next sibling node number

Specified by:
setNextSibNum in interface SearchNode

setPrevSibNum

public void setPrevSibNum(int num)
Establish the previous sibling node number

Specified by:
setPrevSibNum in interface SearchNode

setStringValue

public void setStringValue(String newText)
Establish the text value for this node


getSequenceNumber

protected long getSequenceNumber()
Get a unique sequence number for this node. These are used for sorting nodes in document order.

Overrides:
getSequenceNumber in class NodeImpl