use of eu.esdihumboldt.hale.io.appschema.writer.internal.JoinHandler in project hale by halestudio.
the class AppSchemaMappingTest method processJoinAlignment.
private void processJoinAlignment(Alignment alignment, FeatureChaining chainingConf) {
AppSchemaMappingContext context = new AppSchemaMappingContext(mappingWrapper, alignment, targetTypes, chainingConf, null);
Cell joinCell = alignment.getTypeCells().iterator().next();
JoinHandler handler = new JoinHandler();
handler.handleTypeTransformation(joinCell, context);
for (Cell propertyCell : alignment.getPropertyCells(joinCell)) {
String propertyTransformId = propertyCell.getTransformationIdentifier();
PropertyTransformationHandler propertyTransformHandler;
try {
propertyTransformHandler = PropertyTransformationHandlerFactory.getInstance().createPropertyTransformationHandler(propertyTransformId);
propertyTransformHandler.handlePropertyTransformation(joinCell, propertyCell, context);
} catch (UnsupportedTransformationException e) {
Assert.fail("Unsupported transformation was found");
}
}
}
Aggregations