Package org.jboss.modules.filter
Class MultiplePathFilterBuilder
java.lang.Object
org.jboss.modules.filter.MultiplePathFilterBuilder
A builder for a multiple-path filter.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFilter
(PathFilter filter, boolean include) Add a filter to this builder.create()
Create the path filter from this builder's current state.boolean
isEmpty()
Determine if this filter builder is empty (i.e.
-
Field Details
-
filters
-
includeFlags
-
defaultVal
private final boolean defaultVal
-
-
Constructor Details
-
MultiplePathFilterBuilder
MultiplePathFilterBuilder(boolean defaultVal)
-
-
Method Details
-
addFilter
Add a filter to this builder.- Parameters:
filter
- the filter to addinclude
-true
if matching paths should be included,false
for excluded
-
create
Create the path filter from this builder's current state.- Returns:
- the path filter
-
isEmpty
public boolean isEmpty()Determine if this filter builder is empty (i.e. has no path filters set on it).- Returns:
true
if this builder is empty,false
otherwise
-