Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.io.oml.helper
Class ClassificationMappingTranslator

java.lang.Object
  extended by eu.esdihumboldt.hale.io.oml.helper.ClassificationMappingTranslator
All Implemented Interfaces:
ClassificationMappingFunction, FunctionTranslator

public class ClassificationMappingTranslator
extends Object
implements FunctionTranslator, ClassificationMappingFunction

Translator class to convert old classification mappings to the new classification mapping

Author:
Kevin Mais

Field Summary
 
Fields inherited from interface eu.esdihumboldt.hale.common.align.model.functions.ClassificationMappingFunction
ID, PARAMETER_CLASSIFICATIONS, PARAMETER_NOT_CLASSIFIED_ACTION, USE_FIXED_VALUE_ACTION_PREFIX, USE_NULL_ACTION, USE_SOURCE_ACTION
 
Constructor Summary
ClassificationMappingTranslator()
           
 
Method Summary
 List<ParameterValue> getNewParameters(List<ParameterValue> params, CellBean cellBean, IOReporter reporter, ICell cell)
          Returns the list with the translated parameters
 String getTransformationId()
          Returns the new version of the transformation ID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassificationMappingTranslator

public ClassificationMappingTranslator()
Method Detail

getTransformationId

public String getTransformationId()
Description copied from interface: FunctionTranslator
Returns the new version of the transformation ID

Specified by:
getTransformationId in interface FunctionTranslator
Returns:
the transformation ID
See Also:
FunctionTranslator.getTransformationId()

getNewParameters

public List<ParameterValue> getNewParameters(List<ParameterValue> params,
                                             CellBean cellBean,
                                             IOReporter reporter,
                                             ICell cell)
Description copied from interface: FunctionTranslator
Returns the list with the translated parameters

Specified by:
getNewParameters in interface FunctionTranslator
Parameters:
params - the pre-translation parameters
cellBean - the cell being constructed
reporter - the warning/error reporter
cell - the initial cell loaded from OML
Returns:
the post-translation parameters
See Also:
FunctionTranslator.getNewParameters(java.util.List, eu.esdihumboldt.hale.common.align.io.impl.internal.CellBean, eu.esdihumboldt.hale.common.core.io.report.IOReporter, eu.esdihumboldt.hale.io.oml.internal.model.align.ICell)

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d