[New] Added ExpressionsSupport.relationNull()

This commit is contained in:
Robert von Burg 2021-03-24 23:49:10 +01:00
parent 1ce493e9cb
commit 4fa3f24701
1 changed files with 4 additions and 0 deletions

View File

@ -153,6 +153,10 @@ public class ExpressionsSupport {
return paramNull(BAG_PARAMETERS, paramId);
}
public static <T extends StrolchRootElement> SearchExpression<T> relationNull(String paramId) {
return paramNull(BAG_RELATIONS, paramId);
}
public static <T extends StrolchRootElement> SearchExpression<T> paramNull(String bagId, String paramId) {
return element -> !element.hasParameter(bagId, paramId);
}