use of org.eclipse.vorto.service.mapping.normalized.InfomodelData in project vorto by eclipse.
the class AbstractDataMapper method map.
public MappedData map(DataInput input, MappingContext mappingContext) {
JXPathContext context = newContext(input.getValue());
context.setFunctions(converterLibrary);
InfomodelData normalized = new InfomodelData();
final Infomodel deviceInfoModel = specification.getInfoModel();
for (ModelProperty fbProperty : deviceInfoModel.getFunctionblocks()) {
if (mappingContext.isIncluded(fbProperty.getName())) {
FunctionblockData mappedFb = mapFunctionBlock(fbProperty, context);
if (mappedFb != null) {
normalized.withFunctionblock(mappedFb);
}
}
}
return this.doMap(normalized, mappingContext);
}
Aggregations