com.xml_project.morganaxpath.nodes
Interface NodeModel


public interface NodeModel

Abstract interface for implementation of nodes (likely to change in future versions)


Nested Class Summary
static class NodeModel.NodeAxis
          This axis defined in XDM
static class NodeModel.NodeKinds
          The node kinds defined in XDM
static class NodeModel.NodeOrderNumber
          A class representing the order number of a node in an XDMSequence
 
Method Summary
 com.xml_project.morganaxpath.nodes.XdmSource asSource(java.lang.Object node)
           
 XdmSequence getAxis(NodeModel.NodeAxis a, java.lang.Object node)
           
 java.lang.String getBaseURI(java.lang.Object node)
           
 ModelNode getDocumentNode(java.lang.Object node)
           
 XdmSequence getIDREFs(java.lang.Object node, java.util.List<java.lang.String> idRefs)
          Get elements with one of the specified IDREFs should be evaluated directly by the Node-Model to enabled special features like an index!
 XdmSequence getIDs(java.lang.Object node, java.util.List<java.lang.String> ids)
          Get elements with one of the specified IDs should be evaluated directly by the Node-Model to enabled special features like an index!
 javax.xml.namespace.QName getName(java.lang.Object node)
           
 NodeModel.NodeKinds getNodeKind(java.lang.Object node)
           
 java.lang.Class<? extends XS_AnyType> getNodeType(java.lang.Object node)
           
 NodeModel.NodeOrderNumber getOrderNumber(java.lang.Object node)
           
 XdmSequence getPrefixes(java.lang.Object node)
           
 java.lang.String getStringValue(java.lang.Object node)
           
 XdmValue getTypedValue(java.lang.Object node)
           
 java.lang.String getUriForPrefix(java.lang.Object node, java.lang.String prefix)
           
 void setBaseURI(java.lang.Object node, XS_AnyURI uri)
           
 

Method Detail

getDocumentNode

ModelNode getDocumentNode(java.lang.Object node)

asSource

com.xml_project.morganaxpath.nodes.XdmSource asSource(java.lang.Object node)
                                                      throws javax.xml.transform.TransformerException
Throws:
javax.xml.transform.TransformerException

getTypedValue

XdmValue getTypedValue(java.lang.Object node)

getNodeType

java.lang.Class<? extends XS_AnyType> getNodeType(java.lang.Object node)

getStringValue

java.lang.String getStringValue(java.lang.Object node)

getPrefixes

XdmSequence getPrefixes(java.lang.Object node)
                        throws XPathException
Throws:
XPathException

getNodeKind

NodeModel.NodeKinds getNodeKind(java.lang.Object node)

getName

javax.xml.namespace.QName getName(java.lang.Object node)

getBaseURI

java.lang.String getBaseURI(java.lang.Object node)

getAxis

XdmSequence getAxis(NodeModel.NodeAxis a,
                    java.lang.Object node)
                    throws XPathException
Throws:
XPathException

getOrderNumber

NodeModel.NodeOrderNumber getOrderNumber(java.lang.Object node)

getUriForPrefix

java.lang.String getUriForPrefix(java.lang.Object node,
                                 java.lang.String prefix)

setBaseURI

void setBaseURI(java.lang.Object node,
                XS_AnyURI uri)

getIDs

XdmSequence getIDs(java.lang.Object node,
                   java.util.List<java.lang.String> ids)
                   throws XPathException
Get elements with one of the specified IDs should be evaluated directly by the Node-Model to enabled special features like an index!

Parameters:
node -
ids -
Returns:
the ids.
Throws:
XPathException

getIDREFs

XdmSequence getIDREFs(java.lang.Object node,
                      java.util.List<java.lang.String> idRefs)
                      throws XPathException
Get elements with one of the specified IDREFs should be evaluated directly by the Node-Model to enabled special features like an index!

Parameters:
node -
idRefs -
Returns:
the id refs.
Throws:
XPathException