|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.utils4j.filter.ListFilter
org.fuin.utils4j.filter.OrFilter
public class OrFilter
Defines a filter on a list of sub filters all OR'ed together.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_OR_STR
Used to create a String representation of this filter. |
| Fields inherited from class org.fuin.utils4j.filter.ListFilter |
|---|
DEFAULT_CLOSE_BRACKET, DEFAULT_OPEN_BRACKET |
| Constructor Summary | |
|---|---|
OrFilter()
Default constructor with no arguments. |
|
OrFilter(Filter firstFilter,
Filter secondFilter)
Constructor with two terms. |
|
| Method Summary | |
|---|---|
boolean |
complies(java.lang.Object obj)
Checks if the argument complies with the condition of the filter. |
java.lang.String |
getOrStr()
Returns the phrase representing this type of filter. |
void |
setOrStr(java.lang.String newOrStr)
Set the phrase representing this type of filter A NULL argument will set the default DEFAULT_OR_STR. |
java.lang.String |
toString()
|
| Methods inherited from class org.fuin.utils4j.filter.ListFilter |
|---|
addFilter, getCloseBracket, getFilterList, getOpenBracket, removeFilter, setCloseBracket, setFilterList, setOpenBracket, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_OR_STR
| Constructor Detail |
|---|
public OrFilter()
public OrFilter(Filter firstFilter,
Filter secondFilter)
firstFilter - First term to be or'edsecondFilter - Second term to be or'ed| Method Detail |
|---|
public final boolean complies(java.lang.Object obj)
obj - Object to be tested for compliance
public final java.lang.String toString()
toString in class java.lang.Objectpublic final java.lang.String getOrStr()
public final void setOrStr(java.lang.String newOrStr)
DEFAULT_OR_STR.
newOrStr - Name of the filter (default "or")
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||