public class SearchElementImpl extends ElementImpl implements SearchElement
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
specialAttrChecked |
attrNames, attrValues, nameSpace
childNum
document, 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, init
enumerateChildren, getFirstChild, getLastChild, getStringValue, getStringValueCS, hasChildNodes, iterateAxis
atomize, 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, setSystemId
SearchElementImpl(SearchTree tree)
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 nodespublic String getAttributeValue(int fingerprint)
getAttributeValue
in interface NodeInfo
getAttributeValue
in class ElementImpl
fingerprint
- The fingerprint of the attribute namepublic 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 ancestorXPathException