fi.hut.tml.xsmiles.mlfc.xforms.xpath.jaxen
Class JaxenXPathEngine
java.lang.Object
fi.hut.tml.xsmiles.mlfc.xforms.xpath.jaxen.JaxenXPathEngine
- All Implemented Interfaces:
- XPathEngine
- public class JaxenXPathEngine
- extends java.lang.Object
- implements XPathEngine
- Author:
- honkkis
To change the template for this generated type comment go to
Window>Preferences>Java>Code Generation>Code and Comments
|
Method Summary |
protected org.w3c.dom.Node |
checkContextNode(org.w3c.dom.Node contextNode)
|
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 |
protected org.jaxen.XPath |
initXPath(org.w3c.dom.Node contextNode,
XPathExpr expr,
org.w3c.dom.Node namespaceNode,
org.w3c.dom.NodeList contextList)
|
org.w3c.dom.NodeList |
listToNodeList(java.util.List l)
|
void |
setContext(XFormsContext handler,
ModelContext mcontext)
set the evaluation context and default context node if context node is null later |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
functions
protected static JaxenXFormsFunctions functions
VARIABLE_NS
public static final java.lang.String VARIABLE_NS
- See Also:
- Constant Field Values
CONTEXT_NODE_VARIABLE
public static final java.lang.String CONTEXT_NODE_VARIABLE
- See Also:
- Constant Field Values
JaxenXPathEngine
public JaxenXPathEngine()
setContext
public void setContext(XFormsContext handler,
ModelContext mcontext)
- Description copied from interface:
XPathEngine
- set the evaluation context and default context node if context node is null later
- Specified by:
setContext in interface XPathEngine
createXPathExpression
public XPathExpr createXPathExpression(java.lang.String xpath)
- Specified by:
createXPathExpression in interface XPathEngine
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
- Specified by:
eval in interface XPathEngine
- Throws:
java.lang.Exception
initXPath
protected org.jaxen.XPath initXPath(org.w3c.dom.Node contextNode,
XPathExpr expr,
org.w3c.dom.Node namespaceNode,
org.w3c.dom.NodeList contextList)
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
- Specified by:
evalToString in interface XPathEngine
- Throws:
java.lang.Exception
listToNodeList
public org.w3c.dom.NodeList listToNodeList(java.util.List l)
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
- Specified by:
evalToNodelist in interface XPathEngine
- Throws:
java.lang.Exception
checkContextNode
protected org.w3c.dom.Node checkContextNode(org.w3c.dom.Node contextNode)
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
- Description copied from interface:
XPathEngine
- returns also all the referenced nodes, used by XForms Calculation engine and dynamic UI dependencies
- Specified by:
evalWithTrace in interface XPathEngine
- Throws:
java.lang.Exception
hasFunction
public boolean hasFunction(java.lang.String uri,
java.lang.String funcName)
- Description copied from interface:
XPathEngine
- for model/@function processing, checks whether this function exists
- Specified by:
hasFunction in interface XPathEngine
getModelContext
public ModelContext getModelContext()
- Specified by:
getModelContext in interface XPathEngine
getXFormsContext
public XFormsContext getXFormsContext()
- Specified by:
getXFormsContext in interface XPathEngine
X-Smiles 1.2