E
- the transformation engine typepublic abstract class AbstractPropertyTransformation<E extends TransformationEngine> extends AbstractTransformationFunction<E> implements PropertyTransformation<E>
PropertyTransformation
sConstructor and Description |
---|
AbstractPropertyTransformation() |
Modifier and Type | Method and Description |
---|---|
boolean |
allowAutomatedResultConversion()
Automatic result conversion allowed by default.
|
protected abstract 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.
|
void |
execute(String transformationIdentifier,
E engine,
Map<String,String> executionParameters,
TransformationLog log,
Cell cell)
Execute the function as configured.
|
protected Cell |
getCell()
Get the cell used to configure this function evaluation.
|
com.google.common.collect.ListMultimap<String,Object> |
getResults()
|
protected TypeDefinition |
getTargetType()
Get the target type of the instance that is to be populated with the
function result.
|
void |
setExpectedResult(com.google.common.collect.ListMultimap<String,PropertyEntityDefinition> resultNames)
Set the expected result names.
|
void |
setTargetType(TypeDefinition targetType)
Set the target type of the created instance that is to be populated with
the function result.
|
void |
setVariables(com.google.common.collect.ListMultimap<String,PropertyValue> variables)
Set the property values serving as variables for the function.
|
checkParameter, getExecutionContext, getOptionalParameter, getParameterChecked, getParameters, setExecutionContext, setParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setExecutionContext, setParameters
public void setTargetType(TypeDefinition targetType)
PropertyTransformation
setTargetType
in interface PropertyTransformation<E extends TransformationEngine>
targetType
- the type of the target instancePropertyTransformation.setTargetType(TypeDefinition)
protected TypeDefinition getTargetType()
public void setVariables(com.google.common.collect.ListMultimap<String,PropertyValue> variables)
PropertyTransformation
setVariables
in interface PropertyTransformation<E extends TransformationEngine>
variables
- the property values, variable names are mapped to
property valuesPropertyTransformation.setVariables(ListMultimap)
public com.google.common.collect.ListMultimap<String,Object> getResults()
PropertyTransformation
TransformationFunction.execute(String, TransformationEngine, Map, TransformationLog, Cell)
ion results.getResults
in interface PropertyTransformation<E extends TransformationEngine>
PropertyTransformation.getResults()
public void setExpectedResult(com.google.common.collect.ListMultimap<String,PropertyEntityDefinition> resultNames)
PropertyTransformation
setExpectedResult
in interface PropertyTransformation<E extends TransformationEngine>
resultNames
- the names of the expected results associated with the
corresponding entity definitionPropertyTransformation.setExpectedResult(ListMultimap)
public void execute(String transformationIdentifier, E engine, Map<String,String> executionParameters, TransformationLog log, Cell cell) throws TransformationException
TransformationFunction
execute
in interface TransformationFunction<E extends TransformationEngine>
transformationIdentifier
- the transformation function identifierengine
- the transformation engine that may be used for the function
executionexecutionParameters
- additional parameters for the execution, may
be null
log
- the transformation log to report any information about the
execution of the transformation tocell
- the cell for this functionTransformationException
- if an unrecoverable error occurs during
transformationTransformationFunction.execute(String, TransformationEngine, Map,
TransformationLog, Cell)
protected Cell getCell()
protected abstract 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
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
transformationpublic boolean allowAutomatedResultConversion()
allowAutomatedResultConversion
in interface PropertyTransformation<E extends TransformationEngine>
PropertyTransformation.allowAutomatedResultConversion()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a