use of eu.esdihumboldt.hale.common.align.io.impl.internal.generated.CustomFunctionType in project hale by halestudio.
the class JaxbToAlignment method getPropertyFunctions.
@Override
protected Collection<CustomPropertyFunction> getPropertyFunctions(AlignmentType source, TypeIndex sourceTypes, TypeIndex targetTypes) {
LoadAlignmentContextImpl context = new LoadAlignmentContextImpl();
context.setSourceTypes(sourceTypes);
context.setTargetTypes(targetTypes);
Collection<CustomPropertyFunction> result = new ArrayList<>();
List<CustomFunctionType> functions = source.getCustomFunction();
if (functions != null) {
for (CustomFunctionType function : functions) {
Element elem = function.getAny();
if (elem != null) {
CustomPropertyFunction cf = HaleIO.getComplexValue(elem, CustomPropertyFunction.class, context);
if (cf != null) {
result.add(cf);
}
}
}
}
return result;
}
Aggregations