|
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>
E
- the transformation engine typepublic abstract class AbstractTransformationFunction<E extends TransformationEngine>
Transformation function base class
Constructor Summary | |
---|---|
AbstractTransformationFunction()
|
Method Summary | |
---|---|
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 String |
getOptionalParameter(String parameterName,
String defaultValue)
Get the first parameter defined with the given parameter name. |
protected String |
getParameterChecked(String parameterName)
Get the first parameter defined with the given parameter name. |
com.google.common.collect.ListMultimap<String,String> |
getParameters()
Get the function parameters |
void |
setExecutionContext(ExecutionContext executionContext)
Set the execution context. |
void |
setParameters(com.google.common.collect.ListMultimap<String,String> parameters)
Sets the parameters for the transformation. |
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 |
---|
execute |
Constructor Detail |
---|
public AbstractTransformationFunction()
Method Detail |
---|
public void setParameters(com.google.common.collect.ListMultimap<String,String> parameters)
TransformationFunction
setParameters
in interface TransformationFunction<E extends TransformationEngine>
parameters
- the transformation parametersTransformationFunction.setParameters(ListMultimap)
public com.google.common.collect.ListMultimap<String,String> 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 present
TransformationException
- if the parameter doesn't exist the given
number of timesprotected String getParameterChecked(String parameterName) throws TransformationException
TransformationException
if such a parameter doesn't exist.
parameterName
- the parameter name
TransformationException
- if a parameter with the given name
doesn't existprotected String getOptionalParameter(String parameterName, String defaultValue)
parameterName
- the parameter namedefaultValue
- the default value for the parameter
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |