Class FilterByPropertyRegex
- java.lang.Object
-
- de.valtech.aecu.api.groovy.console.bindings.filters.FilterByPropertyRegex
-
- All Implemented Interfaces:
FilterBy
public class FilterByPropertyRegex extends Object implements FilterBy
Filters resources by a given property using regular expression matching. In case the property name is null all properties will be checked if there is any match. This only works for single value properties.- Author:
- Roland Gruber
-
-
Constructor Summary
Constructors Constructor Description FilterByPropertyRegex(String name, String regex)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfilter(org.apache.sling.api.resource.Resource resource, StringBuilder output)Checks if the given resource matches the filter criteria.
-
-
-
Method Detail
-
filter
public boolean filter(@Nonnull org.apache.sling.api.resource.Resource resource, StringBuilder output)
Description copied from interface:FilterByChecks if the given resource matches the filter criteria.
-
-