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:
NameDescription
outSame as System.out
errSame as System.err
torg.w3c.dom.Element of current template element
aorg.w3c.dom.Element of current actual element


Field Summary
static java.lang.String VAR_ACTUAL
           
static java.lang.String VAR_ERR
           
static java.lang.String VAR_OUT
           
static java.lang.String VAR_TEMPLATE
           
 
Method Summary
 void execute(org.w3c.dom.Element template, org.w3c.dom.Element actual, java.lang.String script)
           
 

Field Detail

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
Method Detail

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.