|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.entityfs.support.filter.AbstractConvenientFilter<Project> org.schmant.project.filter.ProjectNameRegexpFilter
public final class ProjectNameRegexpFilter
A ProjectFilter
that matches projects against a Java regular
expression Pattern
.
ProjectNameGlobFilter
Constructor Summary | |
---|---|
ProjectNameRegexpFilter(Pattern p)
Create a case sensitive filter that matches project names against the provided pattern. |
|
ProjectNameRegexpFilter(String pattern)
Create a case sensitive filter that matches project names against the provided pattern. |
|
ProjectNameRegexpFilter(String pattern,
boolean caseSensitive)
Create a filter that matches project names against the provided pattern. |
|
ProjectNameRegexpFilter(String pattern,
int patternFlags)
Create a filter using the specified pattern and the specified java.util.regex.Pattern flags. |
Method Summary | |
---|---|
boolean |
matches(Project p)
Does the filter match the object? |
Methods inherited from class org.entityfs.support.filter.AbstractConvenientFilter |
---|
and, bitwiseNegate, isCase, not, or, xor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProjectNameRegexpFilter(Pattern p)
p
- The pattern.public ProjectNameRegexpFilter(String pattern)
pattern
- The pattern.public ProjectNameRegexpFilter(String pattern, boolean caseSensitive)
pattern
- The pattern.caseSensitive
- Should the filter be case sensitive?public ProjectNameRegexpFilter(String pattern, int patternFlags)
java.util.regex.Pattern
flags.
pattern
- The pattern.patternFlags
- Flags to the pattern compiler.Method Detail |
---|
public boolean matches(Project p)
Filter
matches
in interface Filter<Project>
p
- The object to match.
true
if the filter matches the object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |