|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectNodeImpl
ParentNodeImpl
ElementImpl
SearchElementImpl
public class SearchElementImpl
Represents an element that has been (possibly) modified to reflect search results. Handles adding the <xtf:hitCount> attribute so the client can easily show how many hits a given section has within it.
Field Summary | |
---|---|
(package private) boolean |
specialAttrChecked
|
Fields inherited from class ElementImpl |
---|
attrNames, attrValues, nameSpace |
Fields inherited from class ParentNodeImpl |
---|
childNum |
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 | |
---|---|
SearchElementImpl(SearchTree tree)
|
Method Summary | |
---|---|
private void |
addSpecialAttrib()
|
void |
allocateAttributes(int nAttrs)
Allocate the attribute array. |
void |
copy(Receiver out,
int whichNamespaces,
boolean copyAnnotations,
int locationId)
Copy this node to a given receiver |
String |
getAttributeValue(int fingerprint)
Get the value of a given attribute of this node |
protected long |
getSequenceNumber()
Gets the sequence number of this element, used for sorting nodes in document order. |
AxisIterator |
iterateAxis(byte axisNumber,
NodeTest nodeTest)
Return an enumeration over the nodes reached by the given axis from this node |
void |
sendNamespaceDeclarations(Receiver out,
boolean includeAncestors)
Output all namespace nodes associated with this element. |
void |
setAttribute(int attrNum,
int nameCode,
String value)
Set an attribute |
void |
setChildNum(int num)
Establish the child node number |
void |
setNameCode(int code)
Establish a name for this node |
void |
setNextSibNum(int num)
Establish the next sibling node number |
void |
setNodeNum(int nodeNum)
Set the node number for this node. |
void |
setParentNum(int parentNum)
Establish the parent node |
void |
setPrevSibNum(int num)
Establish the previous sibling node number |
Methods inherited from class ElementImpl |
---|
getBaseURI, getDeclaredNamespaces, getDeclaredNamespaces, getNodeKind, getTypeAnnotation, init |
Methods inherited from class ParentNodeImpl |
---|
enumerateChildren, getFirstChild, getLastChild, getStringValue, getStringValueCS, hasChildNodes, iterateAxis |
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
boolean specialAttrChecked
Constructor Detail |
---|
SearchElementImpl(SearchTree tree)
Method Detail |
---|
public void setNodeNum(int nodeNum)
setNodeNum
in interface SearchNode
public void allocateAttributes(int nAttrs)
allocateAttributes
in interface SearchElement
public void setAttribute(int attrNum, int nameCode, String value)
setAttribute
in interface SearchElement
public void setParentNum(int parentNum)
setParentNum
in interface SearchNode
public void setChildNum(int num)
setChildNum
in interface SearchElement
public void setNextSibNum(int num)
setNextSibNum
in interface SearchNode
public void setPrevSibNum(int num)
setPrevSibNum
in interface SearchNode
public void setNameCode(int code)
setNameCode
in interface SearchElement
public AxisIterator iterateAxis(byte axisNumber, NodeTest nodeTest)
iterateAxis
in interface NodeInfo
iterateAxis
in class ParentNodeImpl
axisNumber
- The axis to be iterated overnodeTest
- A pattern to be matched by the returned nodes
public String getAttributeValue(int fingerprint)
getAttributeValue
in interface NodeInfo
getAttributeValue
in class ElementImpl
fingerprint
- The fingerprint of the attribute name
public void copy(Receiver out, int whichNamespaces, boolean copyAnnotations, int locationId) throws XPathException
ElementImpl
copy
in interface NodeInfo
copy
in class ElementImpl
whichNamespaces
- indicates which namespaces should be copied: all, none,
or local (i.e., those not declared on a parent element)
XPathException
private void addSpecialAttrib()
protected long getSequenceNumber()
getSequenceNumber
in class NodeImpl
public void sendNamespaceDeclarations(Receiver out, boolean includeAncestors) throws XPathException
sendNamespaceDeclarations
in interface NodeInfo
sendNamespaceDeclarations
in class ElementImpl
out
- The relevant outputterincludeAncestors
- True if namespaces associated with ancestor
XPathException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |