E
- the transformation engine typepublic abstract class AbstractScriptedPropertyTransformation<E extends TransformationEngine> extends AbstractPropertyTransformation<E>
PropertyTransformation
that supports evaluating
scripted parameters.Constructor and Description |
---|
AbstractScriptedPropertyTransformation() |
Modifier and Type | Method and Description |
---|---|
protected com.google.common.collect.ListMultimap<String,Object> |
evaluate(String transformationIdentifier,
E engine,
com.google.common.collect.ListMultimap<String,PropertyValue> variables,
com.google.common.collect.ListMultimap<String,PropertyEntityDefinition> resultNames,
Map<String,String> executionParameters,
TransformationLog log)
Execute the evaluation function as configured.
|
protected abstract com.google.common.collect.ListMultimap<String,Object> |
evaluateImpl(String transformationIdentifier,
E engine,
com.google.common.collect.ListMultimap<String,PropertyValue> variables,
com.google.common.collect.ListMultimap<String,PropertyEntityDefinition> resultNames,
Map<String,String> executionParameters,
TransformationLog log)
Execute the evaluation function as configured.
|
protected Value |
getTransformedOptionalParameter(String parameterName,
Value defaultValue)
Get the first evaluated parameter defined with the given parameter name.
|
protected Value |
getTransformedParameterChecked(String parameterName)
Get the first evaluated parameter defined with the given parameter name.
|
protected com.google.common.collect.ListMultimap<String,Value> |
getTransformedParameters()
Returns the transformed parameters.
|
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
public AbstractScriptedPropertyTransformation()
protected final com.google.common.collect.ListMultimap<String,Object> evaluate(String transformationIdentifier, E engine, com.google.common.collect.ListMultimap<String,PropertyValue> variables, com.google.common.collect.ListMultimap<String,PropertyEntityDefinition> resultNames, Map<String,String> executionParameters, TransformationLog log) throws TransformationException
AbstractPropertyTransformation
evaluate
in class AbstractPropertyTransformation<E extends TransformationEngine>
transformationIdentifier
- the transformation function identifierengine
- the transformation engine that may be used for the function
executionvariables
- the input variablesresultNames
- the expected results (names associated with the
corresponding entity definitions)executionParameters
- 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
transformationprotected abstract com.google.common.collect.ListMultimap<String,Object> evaluateImpl(String transformationIdentifier, E engine, com.google.common.collect.ListMultimap<String,PropertyValue> variables, com.google.common.collect.ListMultimap<String,PropertyEntityDefinition> resultNames, Map<String,String> executionParameters, TransformationLog log) throws TransformationException
transformationIdentifier
- the transformation function identifierengine
- the transformation engine that may be used for the function
executionvariables
- the input variablesresultNames
- the expected results (names associated with the
corresponding entity definitions)executionParameters
- 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
transformationprotected com.google.common.collect.ListMultimap<String,Value> getTransformedParameters()
protected Value getTransformedParameterChecked(String parameterName) throws TransformationException
TransformationException
if such a parameter doesn't
exist.parameterName
- the parameter nameTransformationException
- if a parameter with the given name
doesn't existprotected Value getTransformedOptionalParameter(String parameterName, Value defaultValue)
parameterName
- the parameter namedefaultValue
- the default value for the parameterBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a