public class AxiomDocumentNodeWrapper extends AxiomParentNodeWrapper
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AxiomDocumentNodeWrapper.FollowingSiblingIterator |
protected static class |
AxiomDocumentNodeWrapper.PrecedingSiblingIterator |
AxiomParentNodeWrapper.ChildWrappingIterator, AxiomParentNodeWrapper.DescendantWrappingIteratornodetreeInfoALL_NAMESPACES, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES| Constructor and Description |
|---|
AxiomDocumentNodeWrapper(org.apache.axiom.om.OMDocument root,
String baseURI,
Configuration config)
Create a Saxon wrapper for an Axiom document node
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareOrder(NodeInfo other)
Determine the relative position of this node and another node, in
document order.
|
String |
getBaseURI()
Get the Base URI for the node, that is, the URI used for resolving a relative URI contained
in the node.
|
String |
getDisplayName()
Get the display name of this node.
|
int |
getFingerprint()
Get fingerprint.
|
String |
getLocalPart()
Get the local part of the name of this node.
|
int |
getNameCode()
Get name code.
|
int |
getNodeKind()
Get the kind of node.
|
NodeInfo |
getParent()
Get the NodeInfo object representing the parent of this node
|
String |
getPrefix()
Get the prefix of the name of the node.
|
NodeInfo |
getRoot()
Get the root node of the tree containing this node
|
int |
getSiblingPosition()
Get the index position of this node among its siblings (starting from 0)
|
String |
getSystemId()
Get the System ID for the node.
|
String |
getURI()
Get the URI part of the name of this node.
|
boolean |
isSameNodeInfo(NodeInfo other)
Determine whether this is the same node as another node.
|
boolean |
isTyped()
Ask whether the document contains any nodes whose type annotation is anything other than
UNTYPED
|
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.
|
protected static NodeInfo |
makeWrapper(org.apache.axiom.om.OMNode node,
AxiomDocument docWrapper,
AxiomParentNodeWrapper parent,
int index)
Factory method to wrap an Axiom node with a wrapper that implements the
Saxon NodeInfo interface.
|
void |
setSystemId(String systemId)
Set the system identifier for this Source.
|
atomize, generateId, getStringValueCS, getUnderlyingNode, hasChildNodes, iterateChildren, iterateDescendantscomparePosition, copy, equals, getAttributeValue, getColumnNumber, getConfiguration, getDeclaredNamespaces, getLineNumber, getNamePool, getPublicId, getRealNode, getSchemaType, getStringValue, getTreeInfo, hashCode, head, isId, isIdref, isNilled, iterate, iterateAxis, iterateAxis, saveLocationclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcomparePosition, copy, equals, getAttributeValue, getColumnNumber, getConfiguration, getDeclaredNamespaces, getLineNumber, getPublicId, getSchemaType, getStringValue, getTreeInfo, hashCode, isId, isIdref, isNilled, iterateAxis, iterateAxissaveLocationpublic AxiomDocumentNodeWrapper(org.apache.axiom.om.OMDocument root,
String baseURI,
Configuration config)
root - The Axiom root nodebaseURI - The base URI for all the nodes in the treeconfig - The configuration which defines the name pool used for all
names in this treeprotected static NodeInfo makeWrapper(org.apache.axiom.om.OMNode node, AxiomDocument docWrapper, AxiomParentNodeWrapper parent, int index)
node - The Axiom node (an element, text, processing-instruction, or comment node)docWrapper - The wrapper for the Document containing this nodeparent - The wrapper for the parent of the Axiom node. May be null if not known.index - The position of this node relative to its siblings. May be -1 if not knownpublic boolean isTyped()
public int getSiblingPosition()
public int getNameCode()
allocatepublic int getNodeKind()
Type.ELEMENT
or Type.ATTRIBUTE. There are seven kinds of node: documents, elements, attributes,
text, comments, processing-instructions, and namespaces.Typepublic boolean isSameNodeInfo(NodeInfo other)
isSameNodeInfo in interface NodeInfoisSameNodeInfo in class AbstractNodeWrapperother - the node to be compared with this nodepublic String getBaseURI()
getBaseURI in interface NodeInfogetBaseURI in class AbstractNodeWrapperpublic String getSystemId()
getSystemId in interface SourcegetSystemId in interface SourceLocatorgetSystemId in interface LocationgetSystemId in interface NodeInfogetSystemId in interface LocatorgetSystemId in class AbstractNodeWrapperpublic void setSystemId(String systemId)
The system identifier is optional if the source does not get its data from a URL, but it may still be useful to provide one. The application can use a system identifier, for example, to resolve relative URIs and to include in error messages and warnings.
setSystemId in interface SourcesetSystemId in class AbstractNodeWrappersystemId - The system identifier as a URL string.public int getFingerprint()
public NodeInfo getParent()
public String getLocalPart()
public String getPrefix()
public String getURI()
public String getDisplayName()
getDisplayName in interface NodeInfogetDisplayName in class AbstractNodeWrapperpublic NodeInfo getRoot()
getRoot in interface NodeInfogetRoot in class AbstractNodeWrapperprotected AxisIterator iterateAttributes(NodeTest nodeTest)
AbstractNodeWrapperiterateAttributes in class AbstractNodeWrappernodeTest - a test that the returned attributes must satisfyprotected AxisIterator iterateSiblings(NodeTest nodeTest, boolean forwards)
AbstractNodeWrapperiterateSiblings in class AbstractNodeWrappernodeTest - a test that the returned siblings must satisfyforwards - true for following siblings, false for preceding siblingspublic int compareOrder(NodeInfo other)
other - The other node, whose position is to be compared with this
nodeCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.