fi.hut.tml.xsmiles.mlfc.xforms.xpath
Interface XPathEngine

All Known Implementing Classes:
JaxenXPathEngine, XalanXPathEngine

public interface XPathEngine

Author:
Mikko Honkala

Method Summary
 XPathExpr createXPathExpression(java.lang.String xpath)
           
 java.lang.Object eval(org.w3c.dom.Node contextNode, XPathExpr expr, org.w3c.dom.Node namespaceNode, org.w3c.dom.NodeList contextList)
           
 org.w3c.dom.NodeList evalToNodelist(org.w3c.dom.Node contextNode, XPathExpr expr, org.w3c.dom.Node namespaceNode, org.w3c.dom.NodeList contextList)
           
 java.lang.String evalToString(org.w3c.dom.Node contextNode, XPathExpr expr, org.w3c.dom.Node namespaceNode, org.w3c.dom.NodeList contextList)
           
 java.lang.Object evalWithTrace(org.w3c.dom.Node contextNode, XPathExpr expr, org.w3c.dom.Node namespaceNode, org.w3c.dom.NodeList contextList, LookupResult result)
          returns also all the referenced nodes, used by XForms Calculation engine and dynamic UI dependencies
 ModelContext getModelContext()
           
 XFormsContext getXFormsContext()
           
 boolean hasFunction(java.lang.String uri, java.lang.String funcName)
          for model/@function processing, checks whether this function exists
 void setContext(XFormsContext handler, ModelContext mcontext)
          set the evaluation context and default context node if context node is null later
 

Method Detail

createXPathExpression

public XPathExpr createXPathExpression(java.lang.String xpath)

setContext

public void setContext(XFormsContext handler,
                       ModelContext mcontext)
set the evaluation context and default context node if context node is null later


getModelContext

public ModelContext getModelContext()

getXFormsContext

public XFormsContext getXFormsContext()

eval

public java.lang.Object eval(org.w3c.dom.Node contextNode,
                             XPathExpr expr,
                             org.w3c.dom.Node namespaceNode,
                             org.w3c.dom.NodeList contextList)
                      throws java.lang.Exception
Throws:
java.lang.Exception

evalToString

public java.lang.String evalToString(org.w3c.dom.Node contextNode,
                                     XPathExpr expr,
                                     org.w3c.dom.Node namespaceNode,
                                     org.w3c.dom.NodeList contextList)
                              throws java.lang.Exception
Throws:
java.lang.Exception

evalToNodelist

public org.w3c.dom.NodeList evalToNodelist(org.w3c.dom.Node contextNode,
                                           XPathExpr expr,
                                           org.w3c.dom.Node namespaceNode,
                                           org.w3c.dom.NodeList contextList)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

evalWithTrace

public java.lang.Object evalWithTrace(org.w3c.dom.Node contextNode,
                                      XPathExpr expr,
                                      org.w3c.dom.Node namespaceNode,
                                      org.w3c.dom.NodeList contextList,
                                      LookupResult result)
                               throws java.lang.Exception
returns also all the referenced nodes, used by XForms Calculation engine and dynamic UI dependencies

Throws:
java.lang.Exception

hasFunction

public boolean hasFunction(java.lang.String uri,
                           java.lang.String funcName)
for model/@function processing, checks whether this function exists



X-Smiles 1.2