Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.align.transformation.function.impl
Class AbstractTypeTransformation<E extends TransformationEngine>

java.lang.Object
  extended by eu.esdihumboldt.hale.common.align.transformation.function.impl.AbstractTransformationFunction<E>
      extended by eu.esdihumboldt.hale.common.align.transformation.function.impl.AbstractTypeTransformation<E>
Type Parameters:
E - the transformation engine type
All Implemented Interfaces:
TransformationFunction<E>, TypeTransformation<E>
Direct Known Subclasses:
AbstractSingleTypeTransformation, Retype

public abstract class AbstractTypeTransformation<E extends TransformationEngine>
extends AbstractTransformationFunction<E>
implements TypeTransformation<E>

Type transformation function base class

Author:
Simon Templer

Constructor Summary
AbstractTypeTransformation()
           
 
Method Summary
protected  InstanceFactory getInstanceFactory()
          Get the instance factory
 InstanceHandler<? super E> getInstanceHandler()
          Get the handler to partition the source instances (e.g.
 PropertyTransformer getPropertyTransformer()
          Get the property transformer to publish any source/target instance pair to
 FamilyInstance getSource()
          Get the source instances.
 com.google.common.collect.ListMultimap<String,? extends Type> getTarget()
           
 void setPropertyTransformer(PropertyTransformer propertyTransformer)
          Set the property transformer to publish the source/target instance pairs to.
 void setSource(FamilyInstance sourceInstances)
          Set the source instances.
 void setTarget(com.google.common.collect.ListMultimap<String,? extends Type> target)
          Set the target types.
 
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
execute, setExecutionContext, setParameters
 

Constructor Detail

AbstractTypeTransformation

public AbstractTypeTransformation()
Method Detail

setPropertyTransformer

public void setPropertyTransformer(PropertyTransformer propertyTransformer)
Description copied from interface: TypeTransformation
Set the property transformer to publish the source/target instance pairs to. Type transformations have no result, instead they must publish the instance pairs created during TransformationFunction.execute(String, TransformationEngine, java.util.Map, TransformationLog) ion to the property transformer using PropertyTransformer.publish(FamilyInstance, MutableInstance, TransformationLog) .

Specified by:
setPropertyTransformer in interface TypeTransformation<E extends TransformationEngine>
Parameters:
propertyTransformer - the property transformer
See Also:
TypeTransformation.setPropertyTransformer(PropertyTransformer)

getPropertyTransformer

public PropertyTransformer getPropertyTransformer()
Get the property transformer to publish any source/target instance pair to

Returns:
the property transformer

setTarget

public void setTarget(com.google.common.collect.ListMultimap<String,? extends Type> target)
Description copied from interface: TypeTransformation
Set the target types.

Specified by:
setTarget in interface TypeTransformation<E extends TransformationEngine>
Parameters:
target - the source properties
See Also:
TypeTransformation.setTarget(ListMultimap)

getTarget

public com.google.common.collect.ListMultimap<String,? extends Type> getTarget()
Returns:
the targetTypes

getInstanceFactory

protected InstanceFactory getInstanceFactory()
Get the instance factory

Returns:
the instance factory

setSource

public void setSource(FamilyInstance sourceInstances)
Description copied from interface: TypeTransformation
Set the source instances.

Specified by:
setSource in interface TypeTransformation<E extends TransformationEngine>
Parameters:
sourceInstances - the source instances
See Also:
TypeTransformation.setSource(FamilyInstance)

getSource

public FamilyInstance getSource()
Get the source instances.

Returns:
the source instances

getInstanceHandler

public InstanceHandler<? super E> getInstanceHandler()
Description copied from interface: TypeTransformation
Get the handler to partition the source instances (e.g. merge or join).

Specified by:
getInstanceHandler in interface TypeTransformation<E extends TransformationEngine>
Returns:
the instance handler or null if none is required
See Also:
TypeTransformation.getInstanceHandler()

Humboldt Alignment Editor 2.5.0

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