|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.entityfs.support.filter.AbstractConvenientFilter<EntityView> org.entityfs.util.filter.regexp.EntityLocationRegexpFilter
public class EntityLocationRegexpFilter
This is a filter that matches an entity's location relative to a base
directory against regular expression Pattern
:s.
Constructor Summary | |
---|---|
EntityLocationRegexpFilter(DirectoryView baseDir,
String pattern)
Create a location regular expression filter that will compare locations relative to the given base directory. |
|
EntityLocationRegexpFilter(DirectoryView baseDir,
String pattern,
boolean caseSensitive)
Create a location regular expression filter that will compare locations relative to the given base directory. |
|
EntityLocationRegexpFilter(DirectoryView baseDir,
String pattern,
int flags)
Create a location regular expression filter that will compare locations relative to the given base directory. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
int |
hashCode()
|
boolean |
matches(EntityView ev)
Does the filter match the object? |
String |
toString()
|
Methods inherited from class org.entityfs.support.filter.AbstractConvenientFilter |
---|
and, bitwiseNegate, isCase, not, or, xor |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EntityLocationRegexpFilter(DirectoryView baseDir, String pattern) throws PatternSyntaxException
baseDir
- The base directorypattern
- The regular expression pattern. Patterns for the different
path segments are separated with slashes.
PatternSyntaxException
- On syntax errors in the regular expression
patterns.public EntityLocationRegexpFilter(DirectoryView baseDir, String pattern, boolean caseSensitive) throws PatternSyntaxException
baseDir
- The base directorypattern
- The regular expression pattern. Patterns for the different
path segments are separated with slashes.caseSensitive
- Should the filter be case sensitive?
PatternSyntaxException
- On syntax errors in the regular expression
patterns.public EntityLocationRegexpFilter(DirectoryView baseDir, String pattern, int flags) throws PatternSyntaxException
baseDir
- The base directorypattern
- The regular expression pattern. Patterns for the different
path segments are separated with slashes.flags
- Flags to Pattern.compile
.
PatternSyntaxException
- On syntax errors in the regular expression
patterns.Method Detail |
---|
public boolean matches(EntityView ev)
Filter
matches
in interface Filter<EntityView>
ev
- The object to match.
true
if the filter matches the object.public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |