use of won.shacl2java.annotation.PropertyPath in project webofneeds by researchstudio-sat.
the class Shacl2JavaInstanceFactory method extractPath.
private void extractPath(Map<Path, Set<Field>> fieldsByPath, Field field) {
PropertyPath propertyPath = field.getAnnotation(PropertyPath.class);
if (propertyPath == null) {
return;
}
String propertyPathStr = propertyPath.value();
if (propertyPathStr == null || propertyPathStr.trim().length() == 0) {
return;
}
CollectionUtils.addToMultivalueMap(fieldsByPath, PathParser.parse(propertyPathStr, PrefixMapping.Standard), field);
}
Aggregations