Package com.wavemaker.commons.io
Class FilterOn.AttributeFilter
- java.lang.Object
-
- com.wavemaker.commons.io.FilterOn.AttributeFilter
-
- All Implemented Interfaces:
ResourceFilter
- Enclosing class:
- FilterOn
public static class FilterOn.AttributeFilter extends java.lang.Object implements ResourceFilter
TheResourceFilterand builder used to further restrict filtering.
-
-
Constructor Summary
Constructors Constructor Description AttributeFilter(FilterOn.AttributeFilter parent, ResourceFilter filter)AttributeFilter(FilterOn.ResourceAttribute attribute)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilterOn.AttributeFiltercontaining(java.lang.CharSequence... content)Filter attributes containing with the specified string.FilterOn.AttributeFilterending(java.lang.CharSequence... postfix)Filter attributes ending with the specified string.booleanmatch(ResourceFilterContext context, Resource resource)FilterOn.AttributeFiltermatching(java.lang.CharSequence... value)Filter attributes matching the specified stringFilterOn.AttributeFilternotContaining(java.lang.CharSequence... content)Filter attributes not containing with the specified string.FilterOn.AttributeFilternotEnding(java.lang.CharSequence... postfix)Filter attributes not ending with the specified string.FilterOn.AttributeFilternotMatching(java.lang.CharSequence... value)Filter attributes not matching the specified stringFilterOn.AttributeFilternotStarting(java.lang.CharSequence... prefix)Filter attributes not starting with the specified string.FilterOn.AttributeFilterstarting(java.lang.CharSequence... prefix)Filter attributes starting with the specified string.
-
-
-
Constructor Detail
-
AttributeFilter
public AttributeFilter(FilterOn.ResourceAttribute attribute)
-
AttributeFilter
public AttributeFilter(FilterOn.AttributeFilter parent, ResourceFilter filter)
-
-
Method Detail
-
starting
public FilterOn.AttributeFilter starting(java.lang.CharSequence... prefix)
Filter attributes starting with the specified string.- Parameters:
prefix- the prefix to filter against. If multiple values are specified any may match- Returns:
- the filter
-
notStarting
public FilterOn.AttributeFilter notStarting(java.lang.CharSequence... prefix)
Filter attributes not starting with the specified string.- Parameters:
prefix- the prefix to filter against. If multiple values are specified all must match- Returns:
- the filter
-
ending
public FilterOn.AttributeFilter ending(java.lang.CharSequence... postfix)
Filter attributes ending with the specified string.- Parameters:
postfix- the postfix to filter against. If multiple values are specified any may match- Returns:
- the filter
-
notEnding
public FilterOn.AttributeFilter notEnding(java.lang.CharSequence... postfix)
Filter attributes not ending with the specified string.- Parameters:
postfix- the postfix to filter against. If multiple values are specified all must match- Returns:
- the filter
-
containing
public FilterOn.AttributeFilter containing(java.lang.CharSequence... content)
Filter attributes containing with the specified string.- Parameters:
content- the contents to filter against. If multiple values are specified any may match- Returns:
- the filter
-
notContaining
public FilterOn.AttributeFilter notContaining(java.lang.CharSequence... content)
Filter attributes not containing with the specified string.- Parameters:
content- the contents to filter against. If multiple values are specified all must match- Returns:
- the filter
-
matching
public FilterOn.AttributeFilter matching(java.lang.CharSequence... value)
Filter attributes matching the specified string- Parameters:
value- the values to match- Returns:
- the filter
-
notMatching
public FilterOn.AttributeFilter notMatching(java.lang.CharSequence... value)
Filter attributes not matching the specified string- Parameters:
value- the value to match- Returns:
- the filter
-
match
public boolean match(ResourceFilterContext context, Resource resource)
- Specified by:
matchin interfaceResourceFilter
-
-