|
|||||||||
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.EntityNameGlobFilter
public class EntityNameGlobFilter
This filter matches entity names (not their paths) against a Glob pattern
(for instance .xml
).
EntityLocationGlobFilter
Constructor Summary | |
---|---|
EntityNameGlobFilter(Glob g)
Create a new filter. |
|
EntityNameGlobFilter(String pattern)
Create a new filter. |
|
EntityNameGlobFilter(String pattern,
boolean caseSensitive)
Create a new 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 EntityNameGlobFilter(String pattern) throws PatternSyntaxException
pattern
- The glob pattern.
PatternSyntaxException
- On syntax errors in the given pattern.public EntityNameGlobFilter(String pattern, boolean caseSensitive) throws PatternSyntaxException
pattern
- The glob pattern.caseSensitive
- Should the filter be case sensitive?
PatternSyntaxException
- On syntax errors in the given pattern.public EntityNameGlobFilter(Glob g)
g
- The glob 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 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 |