fi.hut.tml.xsmiles.mlfc.xforms.xpath.xalan
Class XalanXPathEngine
java.lang.Object
fi.hut.tml.xsmiles.mlfc.xforms.xpath.xalan.XalanXPathEngine
- All Implemented Interfaces:
- XPathEngine
- public class XalanXPathEngine
- 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 java.lang.Object |
convertToJavaType(org.apache.xpath.objects.XObject obj)
|
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.apache.xpath.objects.XObject |
evalInternal(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()
|
XPathLookup |
getXPathLookup()
|
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
xpathLookup
protected XPathLookup xpathLookup
- the cached XPath Lookup api context
XalanXPathEngine
public XalanXPathEngine()
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
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
createXPathExpression
public XPathExpr createXPathExpression(java.lang.String xpath)
- Specified by:
createXPathExpression in interface XPathEngine
evalInternal
public org.apache.xpath.objects.XObject evalInternal(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
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
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
convertToJavaType
protected java.lang.Object convertToJavaType(org.apache.xpath.objects.XObject obj)
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
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
getXPathLookup
public XPathLookup getXPathLookup()
getModelContext
public ModelContext getModelContext()
- Specified by:
getModelContext in interface XPathEngine
getXFormsContext
public XFormsContext getXFormsContext()
- Specified by:
getXFormsContext in interface XPathEngine
X-Smiles 1.2