abstract class ParentNodeImpl extends NodeImpl
Modifier and Type | Field and Description |
---|---|
protected int |
sequence |
index, NODE_LETTER, parent
ALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES
EMPTY_VALUE_ARRAY
Constructor and Description |
---|
ParentNodeImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addChild(NodeImpl node,
int index)
Add a child node to this node.
|
void |
compact(int size)
Compact the space used by this node
|
AxisIterator |
enumerateChildren(NodeTest test)
Get an enumeration of the children of this node
|
NodeInfo |
getFirstChild()
Get the first child node of the element
|
NodeInfo |
getLastChild()
Get the last child node of the element
|
protected NodeImpl |
getNthChild(int n)
Get the nth child node of the element (numbering from 0)
|
protected long |
getSequenceNumber()
Get the node sequence number (in document order).
|
java.lang.String |
getStringValue()
Return the string-value of the node, that is, the concatenation
of the character content of all descendent elements and text nodes.
|
java.lang.CharSequence |
getStringValueCS()
Get the value of the item as a CharSequence.
|
boolean |
hasChildNodes()
Determine if the node has any children.
|
void |
useChildrenArray(NodeImpl[] array)
Supply an array to be used for the array of children.
|
atomize, compareOrder, equals, generateId, getAttributeValue, getBaseURI, getColumnNumber, getConfiguration, getDeclaredNamespaces, getDisplayName, getDocumentNumber, getDocumentRoot, getFingerprint, getLineNumber, getLocalPart, getNameCode, getNamePool, getNextInDocument, getNextSibling, getParent, getPrefix, getPreviousInDocument, getPreviousSibling, getPublicId, getRoot, getSystemId, getTypeAnnotation, getTypedValue, getURI, hashCode, isSameNodeInfo, iterateAxis, iterateAxis, sendNamespaceDeclarations, setSystemId
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
copy, getNodeKind
protected final long getSequenceNumber()
getSequenceNumber
in class NodeImpl
public final boolean hasChildNodes()
hasChildNodes
in interface NodeInfo
hasChildNodes
in class NodeImpl
true
if the node has any children,
false
if the node has no children.public final AxisIterator enumerateChildren(NodeTest test)
test
- A NodeTest to be satisfied by the child nodes, or null
if all child node are to be returnedpublic final NodeInfo getFirstChild()
getFirstChild
in class NodeImpl
public final NodeInfo getLastChild()
getLastChild
in class NodeImpl
protected final NodeImpl getNthChild(int n)
public java.lang.String getStringValue()
Item.getStringValueCS()
public java.lang.CharSequence getStringValueCS()
NodeImpl
getStringValueCS
in interface Item
getStringValueCS
in interface ValueRepresentation
getStringValueCS
in class NodeImpl
Item.getStringValue()
public void useChildrenArray(NodeImpl[] array)
public void addChild(NodeImpl node, int index)
public void compact(int size)