net.sf.xmlmatcher.js
Interface JsEngine
- All Known Implementing Classes:
- RhinoJsEngine
public interface JsEngine
Set of methods required for JavaScript execution inside XML Matcher.
JavaScript Variables
Scripting engine implementation is responsible for providing the following predefined variables:
Name | Description |
out | Same as System.out |
err | Same as System.err |
t | org.w3c.dom.Element of current template element |
a | org.w3c.dom.Element of current actual element |
Method Summary |
void |
execute(org.w3c.dom.Element template,
org.w3c.dom.Element actual,
java.lang.String script)
|
VAR_OUT
static final java.lang.String VAR_OUT
- See Also:
- Constant Field Values
VAR_ERR
static final java.lang.String VAR_ERR
- See Also:
- Constant Field Values
VAR_TEMPLATE
static final java.lang.String VAR_TEMPLATE
- See Also:
- Constant Field Values
VAR_ACTUAL
static final java.lang.String VAR_ACTUAL
- See Also:
- Constant Field Values
execute
void execute(org.w3c.dom.Element template,
org.w3c.dom.Element actual,
java.lang.String script)
throws XMLMismatchException,
InvalidTemplateException
- Throws:
XMLMismatchException
InvalidTemplateException
Copyright © 2007. All Rights Reserved.