public abstract class AxiomParentNodeWrapper extends AbstractNodeWrapper implements SiblingCountingNode
Modifier and Type | Class and Description |
---|---|
protected class |
AxiomParentNodeWrapper.ChildWrappingIterator
Iterator over the children of a supplied node
|
protected class |
AxiomParentNodeWrapper.DescendantWrappingIterator
Iterator over the descendants of a supplied node (optionally including the node itself)
|
Modifier and Type | Field and Description |
---|---|
protected org.apache.axiom.om.OMContainer |
node |
treeInfo
IS_DTD_TYPE, IS_NILLED
Modifier | Constructor and Description |
---|---|
protected |
AxiomParentNodeWrapper(org.apache.axiom.om.OMContainer node) |
Modifier and Type | Method and Description |
---|---|
AtomicSequence |
atomize()
Get the typed value.
|
void |
generateId(FastStringBuffer buffer)
Get a character string that uniquely identifies this node.
|
java.lang.CharSequence |
getStringValueCS()
Get the value of the item as a CharSequence.
|
org.apache.axiom.om.OMContainer |
getUnderlyingNode()
Get the underlying Axiom node, to implement the VirtualNode interface
|
boolean |
hasChildNodes()
Determine whether the node has any children.
|
protected AxisIterator |
iterateChildren(NodeTest nodeTest)
Return an iterator over the children of this node.
|
protected AxisIterator |
iterateDescendants(NodeTest nodeTest,
boolean includeSelf)
Return an iterator over the descendants of this node.
|
equals, getAttributeValue, getBaseURI, getColumnNumber, getDeclaredNamespaces, getDisplayName, getFingerprint, getLineNumber, getNamePool, getRealNode, getRoot, getStringValue, getSystemId, getTreeInfo, hasFingerprint, hashCode, iterateAttributes, iterateAxis, iterateAxis, iterateSiblings, saveLocation, setSystemId
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getSiblingPosition
compareOrder, copy, equals, getAttributeValue, getBaseURI, getColumnNumber, getConfiguration, getDeclaredNamespaces, getDisplayName, getFingerprint, getGenre, getLineNumber, getLocalPart, getNodeKind, getParent, getPrefix, getPublicId, getRoot, getSchemaType, getStringValue, getSystemId, getTreeInfo, getURI, hasFingerprint, hashCode, isId, isIdref, isNilled, isSameNodeInfo, isStreamed, iterateAxis, iterateAxis, toShortString
getLength, head, itemAt, iterate, iterator, reduce, subsequence, toGroundedValue
asIterable, effectiveBooleanValue, materialize
makeRepeatable
saveLocation
protected AxiomParentNodeWrapper(org.apache.axiom.om.OMContainer node)
public org.apache.axiom.om.OMContainer getUnderlyingNode()
getUnderlyingNode
in interface VirtualNode
public AtomicSequence atomize()
atomize
in interface Item<NodeInfo>
atomize
in interface NodeInfo
atomize
in class AbstractNodeWrapper
public java.lang.CharSequence getStringValueCS()
getStringValueCS
in interface GroundedValue<NodeInfo>
getStringValueCS
in interface Item<NodeInfo>
Item.getStringValue()
public boolean hasChildNodes()
Note: the result is equivalent to
getEnumeration(Axis.CHILD, AnyNodeTest.getInstance()).hasNext()
hasChildNodes
in interface NodeInfo
hasChildNodes
in class AbstractNodeWrapper
public void generateId(FastStringBuffer buffer)
generateId
in interface NodeInfo
buffer
- a buffer to contain a string that uniquely identifies this node, across all documentsprotected final AxisIterator iterateChildren(NodeTest nodeTest)
AbstractNodeWrapper
iterateChildren
in class AbstractNodeWrapper
nodeTest
- a test that the returned attributes must satisfyprotected AxisIterator iterateDescendants(NodeTest nodeTest, boolean includeSelf)
AbstractNodeWrapper
iterateDescendants
in class AbstractNodeWrapper
nodeTest
- a test that the returned descendants must satisfyincludeSelf
- true if this node is to be included in the resultCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.