Search in sources :

Example 1 with PropertyPath

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);
}
Also used : PropertyPath(won.shacl2java.annotation.PropertyPath)

Aggregations

PropertyPath (won.shacl2java.annotation.PropertyPath)1