public class AxiomDocument extends GenericTreeInfo
Modifier and Type | Class and Description |
---|---|
protected static class |
AxiomDocument.FollowingSiblingIterator |
protected static class |
AxiomDocument.PrecedingSiblingIterator |
Constructor and Description |
---|
AxiomDocument(org.apache.axiom.om.OMDocument root,
java.lang.String baseURI,
Configuration config)
Create a Saxon wrapper for an Axiom document node
|
Modifier and Type | Method and Description |
---|---|
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.
|
NodeInfo |
selectID(java.lang.String id,
boolean getParent)
Get the element with a given ID, if any
|
NodeInfo |
wrap(org.apache.axiom.om.OMNode node)
Wrap a node in the Axiom document.
|
getConfiguration, getDocumentNumber, getPublicId, getRootNode, getSystemId, getUnparsedEntity, getUnparsedEntityNames, getUserData, isStreamed, isTyped, setConfiguration, setDocumentNumber, setRootNode, setSystemId, setUserData
public AxiomDocument(org.apache.axiom.om.OMDocument root, java.lang.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 treepublic NodeInfo wrap(org.apache.axiom.om.OMNode node)
node
- The node to be wrapped. This must be a node in the same
document (the system does not check for this).protected 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 NodeInfo selectID(java.lang.String id, boolean getParent)
selectID
in interface TreeInfo
selectID
in class GenericTreeInfo
id
- the required ID valuegetParent
- true if the parent of the selected node is required (for element-with-id)Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.