public class SearchElementImpl extends ElementImpl implements SearchElement
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
specialAttrChecked |
attrNames, attrValues, nameSpacechildNumdocument, nameCode, nextSibNum, NODE_LETTER, nodeNum, parentNum, prevSibNum| Constructor and Description |
|---|
SearchElementImpl(SearchTree tree) |
| Modifier and Type | Method and Description |
|---|---|
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
|
getBaseURI, getDeclaredNamespaces, getDeclaredNamespaces, getNodeKind, getTypeAnnotation, initenumerateChildren, getFirstChild, getLastChild, getStringValue, getStringValueCS, hasChildNodes, iterateAxisatomize, compareOrder, equals, generateId, getColumnNumber, getConfiguration, getDisplayName, getDocumentNumber, getDocumentRoot, getFingerprint, getLineNumber, getLocalPart, getNameCode, getNamePool, getNextInDocument, getNextSibling, getParent, getPrefix, getPreviousInDocument, getPreviousSibling, getPublicId, getRoot, getSystemId, getTypedValue, getURI, hashCode, isSameNodeInfo, setSystemIdSearchElementImpl(SearchTree tree)
public void setNodeNum(int nodeNum)
setNodeNum in interface SearchNodepublic void allocateAttributes(int nAttrs)
allocateAttributes in interface SearchElementpublic void setAttribute(int attrNum,
int nameCode,
String value)
setAttribute in interface SearchElementpublic void setParentNum(int parentNum)
setParentNum in interface SearchNodepublic void setChildNum(int num)
setChildNum in interface SearchElementpublic void setNextSibNum(int num)
setNextSibNum in interface SearchNodepublic void setPrevSibNum(int num)
setPrevSibNum in interface SearchNodepublic void setNameCode(int code)
setNameCode in interface SearchElementpublic AxisIterator iterateAxis(byte axisNumber,
NodeTest nodeTest)
iterateAxis in interface NodeInfoiterateAxis in class ParentNodeImplaxisNumber - The axis to be iterated overnodeTest - A pattern to be matched by the returned nodespublic String getAttributeValue(int fingerprint)
getAttributeValue in interface NodeInfogetAttributeValue in class ElementImplfingerprint - The fingerprint of the attribute namepublic void copy(Receiver out,
int whichNamespaces,
boolean copyAnnotations,
int locationId)
throws XPathException
ElementImplcopy in interface NodeInfocopy in class ElementImplwhichNamespaces - indicates which namespaces should be copied: all, none,
or local (i.e., those not declared on a parent element)XPathExceptionprivate void addSpecialAttrib()
protected long getSequenceNumber()
getSequenceNumber in class NodeImplpublic void sendNamespaceDeclarations(Receiver out,
boolean includeAncestors)
throws XPathException
sendNamespaceDeclarations in interface NodeInfosendNamespaceDeclarations in class ElementImplout - The relevant outputterincludeAncestors - True if namespaces associated with ancestorXPathException