use of eu.esdihumboldt.commons.goml.omwg.Restriction in project hale by halestudio.
the class ModelClassMappingCell method buildMappingConditions.
private List<ModelMappingCondition> buildMappingConditions(List<Restriction> mappingRestrictions) throws TranslationException {
List<ModelMappingCondition> result;
try {
result = new ArrayList<ModelMappingCondition>();
for (Restriction restriction : mappingRestrictions) {
ModelMappingCondition condition = DIGESTER.translate(CQL.toFilter(restriction.getCqlStr()));
result.add(condition);
}
} catch (CQLException e) {
throw new TranslationException(e);
}
return result;
}
Aggregations