public class DefaultPathFilter extends Object implements PathFilter
ALL, NONE
Constructor and Description |
---|
DefaultPathFilter()
Default constructor
|
DefaultPathFilter(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.
|
boolean |
equals(Object o) |
String |
getPattern()
Returns the pattern
|
int |
hashCode() |
boolean |
isAbsolute()
Checks if the pattern is absolute, i.e.
|
boolean |
matches(String path)
Checks if the given path matches this filters criteria.
|
void |
setPattern(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(String pattern)
pattern
- the patternsetPattern(java.lang.String)
public void setPattern(String pattern)
pattern
- the pattern.public String getPattern()
public boolean matches(String path)
matches
in interface PathFilter
path
- the path to checktrue
if this filter matches the criteria;
false
otherwise.public boolean isAbsolute()
isAbsolute
in interface PathFilter
true
if pattern is absolutepublic PathFilter translate(PathMapping mapping)
translate
in interface PathFilter
mapping
- the mapping to applypublic void dump(DumpContext ctx, boolean isLast)
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"