public class AxiomElementNodeWrapper extends AxiomParentNodeWrapper
AxiomParentNodeWrapper.ChildWrappingIterator, AxiomParentNodeWrapper.DescendantWrappingIterator
Modifier and Type | Field and Description |
---|---|
protected AxiomDocument |
docWrapper |
protected int |
index |
node
treeInfo
IS_DTD_TYPE, IS_NILLED
Modifier | Constructor and Description |
---|---|
protected |
AxiomElementNodeWrapper(org.apache.axiom.om.OMElement node,
AxiomDocument docWrapper,
AxiomParentNodeWrapper parent,
int index)
This constructor is protected: nodes should be created using the wrap
factory method on the DocumentWrapper class
|
Modifier and Type | Method and Description |
---|---|
int |
compareOrder(NodeInfo other)
Determine the relative position of this node and another node, in
document order.
|
java.lang.String |
getAttributeValue(java.lang.String uri,
java.lang.String local)
Get the string value of a given attribute of this node
|
NamespaceBinding[] |
getDeclaredNamespaces(NamespaceBinding[] buffer)
Get all namespace undeclarations and undeclarations defined on this element.
|
java.lang.String |
getLocalPart()
Get the local part of the name of this node.
|
int |
getNodeKind()
Return the type of node.
|
AxiomParentNodeWrapper |
getParent()
Get the NodeInfo object representing the parent of this node
|
java.lang.String |
getPrefix()
Get the prefix of the name of the node.
|
NodeInfo |
getRoot()
Get the root node of the tree containing this node
|
SchemaType |
getSchemaType()
Get the type annotation of this node, if any.
|
int |
getSiblingPosition()
Get the index position of this node among its siblings (starting from 0)
|
java.lang.String |
getURI()
Get the URI part of the name of this node.
|
protected AxisIterator |
iterateAttributes(NodeTest nodeTest)
Return an iterator over the attributes of this element node.
|
protected AxisIterator |
iterateSiblings(NodeTest nodeTest,
boolean forwards)
Return an iterator over the siblings of this node.
|
atomize, generateId, getStringValueCS, getUnderlyingNode, hasChildNodes, iterateChildren, iterateDescendants
equals, getBaseURI, getColumnNumber, getDisplayName, getFingerprint, getLineNumber, getNamePool, getRealNode, getStringValue, getSystemId, getTreeInfo, hasFingerprint, hashCode, iterateAxis, iterateAxis, saveLocation, setSystemId
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
copy, equals, getBaseURI, getColumnNumber, getConfiguration, getDisplayName, getFingerprint, getGenre, getLineNumber, getPublicId, getStringValue, getSystemId, getTreeInfo, hasFingerprint, hashCode, isId, isIdref, isNilled, isSameNodeInfo, isStreamed, iterateAxis, iterateAxis, toShortString
getLength, head, itemAt, iterate, iterator, reduce, subsequence, toGroundedValue
asIterable, effectiveBooleanValue, materialize
makeRepeatable
saveLocation
protected AxiomDocument docWrapper
protected int index
protected AxiomElementNodeWrapper(org.apache.axiom.om.OMElement node, AxiomDocument docWrapper, AxiomParentNodeWrapper parent, int index)
node
- The Axiom node to be wrappeddocWrapper
- The wrapper around the document node at the root of the treeparent
- The NodeWrapper that wraps the parent of this nodeindex
- Position of this node among its siblingspublic int getNodeKind()
Type
public SchemaType getSchemaType()
Types derived from a DTD are not reflected in the result of this method.
public int compareOrder(NodeInfo other)
other
- The other node, whose position is to be compared with this
nodepublic java.lang.String getLocalPart()
public java.lang.String getPrefix()
public java.lang.String getURI()
public AxiomParentNodeWrapper getParent()
public int getSiblingPosition()
protected AxisIterator iterateAttributes(NodeTest nodeTest)
AbstractNodeWrapper
iterateAttributes
in class AbstractNodeWrapper
nodeTest
- a test that the returned attributes must satisfyprotected AxisIterator iterateSiblings(NodeTest nodeTest, boolean forwards)
AbstractNodeWrapper
iterateSiblings
in class AbstractNodeWrapper
nodeTest
- a test that the returned siblings must satisfyforwards
- true for following siblings, false for preceding siblingspublic java.lang.String getAttributeValue(java.lang.String uri, java.lang.String local)
getAttributeValue
in interface NodeInfo
getAttributeValue
in class AbstractNodeWrapper
uri
- the namespace URI of the attribute name. Supply the empty string for an attribute
that is in no namespacelocal
- the local part of the attribute name.public NodeInfo getRoot()
getRoot
in interface NodeInfo
getRoot
in class AbstractNodeWrapper
public NamespaceBinding[] getDeclaredNamespaces(NamespaceBinding[] buffer)
getDeclaredNamespaces
in interface NodeInfo
getDeclaredNamespaces
in class AbstractNodeWrapper
buffer
- If this is non-null, and the result array fits in this buffer, then the result
may overwrite the contents of this array, to avoid the cost of allocating a new array on the heap.For a node other than an element, the method returns null.
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.