|
JBoss Modules 1.1.3.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.modules.filter.PathFilters
public final class PathFilters

Static factory methods for path filter types.
| Method Summary | |
|---|---|
static PathFilter |
acceptAll()
Get a filter which always returns true. |
static PathFilter |
all(Collection<PathFilter> filters)
Get a path filter which returns true if all of the given filters return true. |
static PathFilter |
all(PathFilter... filters)
Get a path filter which returns true if all of the given filters return true. |
static PathFilter |
any(Collection<PathFilter> filters)
Get a path filter which returns true if any of the given filters return true. |
static PathFilter |
any(PathFilter... filters)
Get a path filter which returns true if any of the given filters return true. |
static PathFilter |
getDefaultImportFilter()
Get the default import path filter, which excludes all of META-INF and its subdirectories. |
static PathFilter |
getDefaultImportFilterWithServices()
Get the default import-with-services path filter which excludes all of META-INF and its subdirectories,
with the exception of META-INF/services. |
static PathFilter |
getMetaInfFilter()
Get a filter which matches the path "META-INF". |
static PathFilter |
getMetaInfServicesFilter()
Get a filter which matches the path "META-INF/services". |
static PathFilter |
getMetaInfSubdirectoriesFilter()
Get a filter which matches any subdirectory of the path "META-INF". |
static PathFilter |
getMetaInfSubdirectoriesWithoutMetaInfFilter()
Get a filter which matches all of META-INF's subdirectories, but not META-INF itself. |
static PathFilter |
in(Set<String> paths)
Get a filter which returns true if the tested path is contained within the given set. |
static PathFilter |
is(String path)
Get a path filter which matches an exact path name. |
static PathFilter |
isChildOf(String path)
Get a path filter which matches any path which is a child of the given path name (not including the path name itself). |
static PathFilter |
match(String glob)
Get a path filter which matches a glob. |
static MultiplePathFilterBuilder |
multiplePathFilterBuilder(boolean defaultValue)
Get a builder for a multiple-path filter. |
static PathFilter |
not(PathFilter filter)
Get a path filter which is true when the given filter is false, and vice-versa. |
static PathFilter |
rejectAll()
Get a filter which always returns false. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static PathFilter all(PathFilter... filters)
true if all of the given filters return true.
filters - the filters
public static PathFilter all(Collection<PathFilter> filters)
true if all of the given filters return true.
filters - the filters
public static PathFilter any(PathFilter... filters)
true if any of the given filters return true.
filters - the filters
public static PathFilter any(Collection<PathFilter> filters)
true if any of the given filters return true.
filters - the filters
public static PathFilter not(PathFilter filter)
true when the given filter is false, and vice-versa.
filter - the filter
public static PathFilter match(String glob)
/" characters, which may include the special "*" and "**" segment strings
which match any directory and any number of nested directories, respectively.
glob - the glob
true if the glob matchespublic static PathFilter is(String path)
path - the path name
true if the path name is an exact matchpublic static PathFilter isChildOf(String path)
path - the path name
true if the path name is a child of the given pathpublic static MultiplePathFilterBuilder multiplePathFilterBuilder(boolean defaultValue)
defaultValue - the value to return if none of the nested filters match
public static PathFilter acceptAll()
true.
public static PathFilter rejectAll()
false.
public static PathFilter in(Set<String> paths)
true if the tested path is contained within the given set.
Each member of the set is a path separated by "/" characters; nulls are disallowed.
paths - the path set
public static PathFilter getDefaultImportFilter()
META-INF and its subdirectories.
public static PathFilter getDefaultImportFilterWithServices()
META-INF and its subdirectories,
with the exception of META-INF/services.
public static PathFilter getMetaInfFilter()
"META-INF".
public static PathFilter getMetaInfSubdirectoriesFilter()
"META-INF".
public static PathFilter getMetaInfServicesFilter()
"META-INF/services".
public static PathFilter getMetaInfSubdirectoriesWithoutMetaInfFilter()
META-INF's subdirectories, but not META-INF itself.
|
JBoss Modules 1.1.3.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||