|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.common.align.transformation.function.impl.AbstractTransformationFunction<E>
eu.esdihumboldt.hale.common.align.transformation.function.impl.AbstractPropertyTransformation<E>
E
- the transformation engine typepublic abstract class AbstractPropertyTransformation<E extends TransformationEngine>
Base class for implementing PropertyTransformation
s
Constructor Summary | |
---|---|
AbstractPropertyTransformation()
|
Method Summary | |
---|---|
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)
Execute the function as configured. |
com.google.common.collect.ListMultimap<String,Object> |
getResults()
Get the TransformationFunction.execute(String, TransformationEngine, Map, TransformationLog) ion
results. |
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. |
Methods inherited from class eu.esdihumboldt.hale.common.align.transformation.function.impl.AbstractTransformationFunction |
---|
checkParameter, getExecutionContext, getOptionalParameter, getParameterChecked, getParameters, setExecutionContext, setParameters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface eu.esdihumboldt.hale.common.align.transformation.function.TransformationFunction |
---|
setExecutionContext, setParameters |
Constructor Detail |
---|
public AbstractPropertyTransformation()
Method Detail |
---|
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)
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) 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 to
TransformationException
- if an unrecoverable error occurs during
transformationTransformationFunction.execute(String, TransformationEngine, Map,
TransformationLog)
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 to
TransformationException
- if an unrecoverable error occurs during
transformationpublic boolean allowAutomatedResultConversion()
allowAutomatedResultConversion
in interface PropertyTransformation<E extends TransformationEngine>
PropertyTransformation.allowAutomatedResultConversion()
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |