| |
|
| java.lang.Object org.webdocwf.util.loader.transformation.JavaScriptEvaluator
JavaScriptEvaluator | public class JavaScriptEvaluator implements Transformer(Code) | | This class is used to evaluate javaScript expresions used to transform data in transformations.
As base for this class is used rhino1.5 (Rhino is an open-source implementation of JavaScript
written entirely in Java)
author: Zeljko Kovacevic version: 1.0 |
getExpression | public String getExpression()(Code) | | This method will return javaScript expression used for transformation.
String |
getVariableNames | public Vector getVariableNames()(Code) | | This method returns vector with variable names from java script.
vector with variable names |
release | public void release()(Code) | | |
setExpression | public void setExpression(String exppression)(Code) | | This method set javaScript expression
Parameters: exppression - String which is javaScript expression |
setLogger | public void setLogger(Logger logger)(Code) | | This method set logger
Parameters: logger - |
setVariableNames | public void setVariableNames(Vector vector)(Code) | | This method set variable names from java script.
Parameters: vector - Vector with variable names |
transformValue | public List transformValue(List valueToTransform) throws Exception(Code) | | This method will transform data from input List using javaScript
and return List with transformed values
Parameters: valueToTransform - input values for transformation List with transformed values |
|
|
|