public class GroovyTransformation extends AbstractSingleTargetPropertyTransformation<TransformationEngine> implements GroovyConstants
ENTITY_VARIABLE, PARAMETER_SCRIPT
Constructor and Description |
---|
GroovyTransformation() |
Modifier and Type | Method and Description |
---|---|
static groovy.lang.Binding |
createGroovyBinding(List<PropertyValue> vars,
boolean useNullForMissingBindings)
Create a Groovy binding from the list of variables.
|
protected Object |
evaluate(String transformationIdentifier,
TransformationEngine engine,
com.google.common.collect.ListMultimap<String,PropertyValue> variables,
String resultName,
PropertyEntityDefinition resultProperty,
Map<String,String> executionParameters,
TransformationLog log)
Execute the evaluation function as configured.
|
evaluate
allowAutomatedResultConversion, execute, getCell, getResults, getTargetType, setExpectedResult, setTargetType, setVariables
checkParameter, getExecutionContext, getOptionalParameter, getParameterChecked, getParameters, setExecutionContext, setParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setExecutionContext, setParameters
protected Object evaluate(String transformationIdentifier, TransformationEngine engine, com.google.common.collect.ListMultimap<String,PropertyValue> variables, String resultName, PropertyEntityDefinition resultProperty, Map<String,String> executionParameters, TransformationLog log) throws TransformationException, NoResultException
AbstractSingleTargetPropertyTransformation
evaluate
in class AbstractSingleTargetPropertyTransformation<TransformationEngine>
transformationIdentifier
- the transformation function identifierengine
- the transformation engine that may be used for the function
executionvariables
- the input variablesresultName
- the name of the resultresultProperty
- the property entity definition associated with the
resultexecutionParameters
- additional parameters for the execution, may
be null
log
- the transformation log to report any information about the
execution of the transformation toTransformationException
- if an unrecoverable error occurs during
transformationNoResultException
- if the function does not yield a resultAbstractSingleTargetPropertyTransformation.evaluate(String,
TransformationEngine, ListMultimap, String,
PropertyEntityDefinition, Map, TransformationLog)
public static groovy.lang.Binding createGroovyBinding(List<PropertyValue> vars, boolean useNullForMissingBindings)
vars
- the variablesuseNullForMissingBindings
- if the binding should provide
null
values for variables that are not provided
in the given variable listGroovyShell
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a