|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.utils4j.filter.ListFilter
public abstract class ListFilter
Defines a filter on a list of sub filters.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_CLOSE_BRACKET
Used to build a String representation out of this filter. |
static java.lang.String |
DEFAULT_OPEN_BRACKET
Used to build a String representation out of this filter. |
| Constructor Summary | |
|---|---|
ListFilter()
Default constructor with no arguments. |
|
ListFilter(Filter firstFilter,
Filter secondFilter)
Constructor with two terms. |
|
| Method Summary | |
|---|---|
void |
addFilter(Filter filter)
Adds another filter term to the list. |
java.lang.String |
getCloseBracket()
Returns the String used as a closing bracket for the term. |
java.util.List |
getFilterList()
Returns a list of all subfilters. |
java.lang.String |
getOpenBracket()
Returns the String used as an opening bracket for the term. |
void |
removeFilter(Filter filter)
Removes a filter term from the list. |
void |
setCloseBracket(java.lang.String newCloseBracket)
Sets the String used as a closing bracket for the term. |
void |
setFilterList(java.util.List newList)
Set a list of subfilters. |
void |
setOpenBracket(java.lang.String newOpenBracket)
Sets the String used as an opening bracket for the term. |
protected java.lang.String |
toString(java.lang.String opStr)
Helper for creating a String representation of the filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.fuin.utils4j.filter.Filter |
|---|
complies |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_OPEN_BRACKET
public static final java.lang.String DEFAULT_CLOSE_BRACKET
| Constructor Detail |
|---|
public ListFilter()
public ListFilter(Filter firstFilter,
Filter secondFilter)
firstFilter - First filter partsecondFilter - Second filter part| Method Detail |
|---|
public final void addFilter(Filter filter)
filter - Part to be addedpublic final void removeFilter(Filter filter)
filter - Part to be removedprotected final java.lang.String toString(java.lang.String opStr)
opStr - Name of the operator ("and", "or" ...)
public final java.lang.String getCloseBracket()
public final java.lang.String getOpenBracket()
public final void setCloseBracket(java.lang.String newCloseBracket)
newCloseBracket - Bracketpublic final void setOpenBracket(java.lang.String newOpenBracket)
newOpenBracket - Bracketpublic final java.util.List getFilterList()
Filter objectspublic final void setFilterList(java.util.List newList)
newList - List with filters to be used
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||