public class DefaultPathFilter extends java.lang.Object implements PathFilter
ALL, NONE| Constructor and Description |
|---|
DefaultPathFilter()
Default constructor
|
DefaultPathFilter(java.lang.String pattern)
Creates a new default path filter
|
| Modifier and Type | Method and Description |
|---|---|
void |
dump(DumpContext ctx,
boolean isLast)
Dumps some human readable information using the given context.
|
java.lang.String |
getPattern()
Returns the pattern
|
boolean |
isAbsolute()
Checks if the pattern is absolute, i.e.
|
boolean |
matches(java.lang.String path)
Checks if the given path matches this filters criteria.
|
void |
setPattern(java.lang.String pattern)
Sets the regexp pattern for this filter.
|
PathFilter |
translate(PathMapping mapping)
Translates this path filter with the given mapping.
|
public DefaultPathFilter()
public DefaultPathFilter(java.lang.String pattern)
pattern - the patternsetPattern(java.lang.String)public void setPattern(java.lang.String pattern)
pattern - the pattern.public java.lang.String getPattern()
public boolean matches(java.lang.String path)
matches in interface PathFilterpath - the path to checktrue if this filter matches the criteria;
false otherwise.public boolean isAbsolute()
isAbsolute in interface PathFiltertrue if pattern is absolutepublic PathFilter translate(PathMapping mapping)
translate in interface PathFiltermapping - the mapping to applypublic void dump(DumpContext ctx, boolean isLast)
"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"