abstract class ParentNodeImpl extends NodeImpl
| Modifier and Type | Field and Description |
|---|---|
protected int |
sequence |
index, NODE_LETTER, parentALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACESEMPTY_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, setSystemIdclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcopy, getNodeKindprotected final long getSequenceNumber()
getSequenceNumber in class NodeImplpublic final boolean hasChildNodes()
hasChildNodes in interface NodeInfohasChildNodes in class NodeImpltrue 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 NodeImplpublic final NodeInfo getLastChild()
getLastChild in class NodeImplprotected final NodeImpl getNthChild(int n)
public java.lang.String getStringValue()
Item.getStringValueCS()public java.lang.CharSequence getStringValueCS()
NodeImplgetStringValueCS in interface ItemgetStringValueCS in interface ValueRepresentationgetStringValueCS in class NodeImplItem.getStringValue()public void useChildrenArray(NodeImpl[] array)
public void addChild(NodeImpl node, int index)
public void compact(int size)