|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.entityfs.support.filter.AbstractConvenientFilter<EntityView>
org.entityfs.util.filter.regexp.EntityNameRegexpFilter
public class EntityNameRegexpFilter
This is a Filter that matches entity names against a regular
expression Pattern.
Instances of this class are immutable.
| Constructor Summary | |
|---|---|
EntityNameRegexpFilter(Pattern pattern)
Create a filter. |
|
EntityNameRegexpFilter(String pattern)
Create a case sensitive filter. |
|
EntityNameRegexpFilter(String pattern,
boolean caseSensitive)
Create a filter. |
|
EntityNameRegexpFilter(String pattern,
int flags)
Create a filter. |
|
| 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 EntityNameRegexpFilter(Pattern pattern)
pattern - The pattern to match entity names against.
public EntityNameRegexpFilter(String pattern)
throws PatternSyntaxException
pattern - A regular expression pattern.
PatternSyntaxException - On syntax errors in the pattern.
public EntityNameRegexpFilter(String pattern,
boolean caseSensitive)
throws PatternSyntaxException
pattern - A regular expression pattern.caseSensitive - Should the filter be case sensitive?
PatternSyntaxException - On syntax errors in the pattern.
public EntityNameRegexpFilter(String pattern,
int flags)
throws PatternSyntaxException
pattern - A regular expression pattern.flags - Flags to Pattern.compile.
PatternSyntaxException - On syntax errors in the pattern.| 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 Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||