public class AxiomElementNodeWrapper extends AxiomParentNodeWrapper
AxiomParentNodeWrapper.ChildWrappingIterator, AxiomParentNodeWrapper.DescendantWrappingIterator| Modifier and Type | Field and Description |
|---|---|
protected AxiomDocument |
docWrapper |
protected int |
index |
nodetreeInfoIS_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.
|
NamespaceMap |
getAllNamespaces()
Get all the namespace bindings that are in-scope for this element.
|
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(java.util.function.Predicate<? super NodeInfo> nodeTest)
Return an iterator over the attributes of this element node.
|
protected AxisIterator |
iterateSiblings(java.util.function.Predicate<? super NodeInfo> nodeTest,
boolean forwards)
Return an iterator over the siblings of this node.
|
atomize, generateId, getStringValueCS, getUnderlyingNode, hasChildNodes, iterateChildren, iterateDescendantsequals, getBaseURI, getColumnNumber, getDisplayName, getFingerprint, getLineNumber, getNamePool, getRealNode, getStringValue, getSystemId, getTreeInfo, hasFingerprint, hashCode, iterateAxis, iterateAxis, saveLocation, setSystemIdclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitattributes, children, children, copy, equals, getBaseURI, getColumnNumber, getConfiguration, getDisplayName, getFingerprint, getGenre, getLineNumber, getPublicId, getStringValue, getSystemId, getTreeInfo, hasFingerprint, hashCode, isId, isIdref, isNilled, isSameNodeInfo, isStreamed, iterateAxis, iterateAxis, toShortStringgetLength, head, itemAt, iterate, reduce, subsequence, toGroundedValueasIterable, concatenate, containsNode, effectiveBooleanValue, materializemakeRepeatablesaveLocationprotected 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()
Typepublic 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(java.util.function.Predicate<? super NodeInfo> nodeTest)
AbstractNodeWrapperiterateAttributes in class AbstractNodeWrappernodeTest - a test that the returned attributes must satisfyprotected AxisIterator iterateSiblings(java.util.function.Predicate<? super NodeInfo> nodeTest, boolean forwards)
AbstractNodeWrapperiterateSiblings in class AbstractNodeWrappernodeTest - 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 NodeInfogetAttributeValue in class AbstractNodeWrapperuri - 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 NodeInfogetRoot in class AbstractNodeWrapperpublic NamespaceBinding[] getDeclaredNamespaces(NamespaceBinding[] buffer)
getDeclaredNamespaces in interface NodeInfogetDeclaredNamespaces in class AbstractNodeWrapperbuffer - 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.
public NamespaceMap getAllNamespaces()
For an element return all the prefix-to-uri bindings that are in scope. This may include a binding to the default namespace (represented by a prefix of ""). It will never include "undeclarations" - that is, the namespace URI will never be empty; the effect of an undeclaration is to remove a binding from the in-scope namespaces, not to add anything.
For a node other than an element, returns null.
getAllNamespaces in interface NodeInfogetAllNamespaces in class AbstractNodeWrapperCopyright (c) 2004-2021 Saxonica Limited. All rights reserved.