|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jcreme.filters.LikeStringFilter
A filter that filters strings based on a comparison operator (which can basically be LIKE or NOT_LIKE) , and a stem that given strings have to be 'like' or 'not like'.
Field Summary | |
(package private) static long |
serialVersionUID
|
Constructor Summary | |
LikeStringFilter(StringComparisonOperator op,
java.lang.String stem)
Creates new LikeStringComparator |
Method Summary | |
boolean |
accept(java.lang.Object obj)
Tells whether the given object 'passes' the filter or not. |
java.lang.Object |
clone()
This forces override of the Object class clone method. it makes a deep copy so a change in a subfilter does not affect the cloned version. |
boolean |
equals(java.lang.Object o)
Overloads the 'dummy' implementation in Object, so that it returns true only if the passed in parameter is a filter of the same kind as this one, and accepts exactly the same objects. |
ComparisonOperator |
getOperator()
Gives access to the comparison operator used by the filter. |
java.lang.String |
getStem()
Gives access to the stem used by this filter. |
int |
hashCode()
Overloads the 'dummy' implementation in Object so that it fulfills the implicit hashCode contract, i.e. same filters have the same hashCode and different ones have different hashCodes. |
java.lang.String |
toString()
Gives a SQL-like string representation of this filter. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
static final long serialVersionUID
Constructor Detail |
public LikeStringFilter(StringComparisonOperator op, java.lang.String stem) throws java.lang.IllegalArgumentException
op
- The operator to be applied.stem
- The stem to be used to filter strings.
java.lang.IllegalArgumentException
- In case any of the passed in parameters is null, which is not
wanted here.Method Detail |
public boolean accept(java.lang.Object obj)
accept
in interface Filter
obj
- The object you want to 'test'.
public ComparisonOperator getOperator()
public java.lang.String getStem()
public java.lang.String toString()
public boolean equals(java.lang.Object o)
o
- The object to be compared to this one.
public int hashCode()
public java.lang.Object clone()
clone
in interface Filter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |