E
- the transformation engine typepublic abstract class AbstractTransformationFunction<E extends TransformationEngine> extends Object implements TransformationFunction<E>
Constructor and Description |
---|
AbstractTransformationFunction() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkParameter(String parameterName,
int minCount)
Checks if a certain parameter is defined at least a given number of
times.
|
protected ExecutionContext |
getExecutionContext()
Get the current execution context.
|
protected ParameterValue |
getOptionalParameter(String parameterName,
Value defaultValue)
Get the first parameter defined with the given parameter name.
|
protected ParameterValue |
getParameterChecked(String parameterName)
Get the first parameter defined with the given parameter name.
|
com.google.common.collect.ListMultimap<String,ParameterValue> |
getParameters()
Get the function parameters
|
void |
setExecutionContext(ExecutionContext executionContext)
Set the execution context.
|
void |
setParameters(com.google.common.collect.ListMultimap<String,ParameterValue> parameters)
Sets the parameters for the transformation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute
public void setParameters(com.google.common.collect.ListMultimap<String,ParameterValue> parameters)
TransformationFunction
setParameters
in interface TransformationFunction<E extends TransformationEngine>
parameters
- the transformation parametersTransformationFunction.setParameters(ListMultimap)
public com.google.common.collect.ListMultimap<String,ParameterValue> getParameters()
null
if there are nonepublic void setExecutionContext(ExecutionContext executionContext)
TransformationFunction
setExecutionContext
in interface TransformationFunction<E extends TransformationEngine>
executionContext
- the execution context of the transformation
processTransformationFunction.setExecutionContext(ExecutionContext)
protected ExecutionContext getExecutionContext()
protected void checkParameter(String parameterName, int minCount) throws TransformationException
TransformationException
otherwise.parameterName
- the parameter nameminCount
- the minimum count the parameter must be presentTransformationException
- if the parameter doesn't exist the given
number of timesprotected ParameterValue getParameterChecked(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 ParameterValue getOptionalParameter(String parameterName, Value defaultValue)
parameterName
- the parameter namedefaultValue
- the default value for the parameterBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a