|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sciapp.filter.Filter
com.sciapp.filter.BooleanFilter
public class BooleanFilter
A boolean filter.
Field Summary | |
---|---|
protected boolean |
value
the boolean value the supplied objects are matched against. |
Fields inherited from class com.sciapp.filter.Filter |
---|
acceptNull |
Constructor Summary | |
---|---|
BooleanFilter()
Constructs a BooleanFilter that will match false values. |
|
BooleanFilter(boolean condition)
Constructs a BooleanFilter that will match values depending on condition . |
Method Summary | |
---|---|
boolean |
accept(boolean b)
Matches the boolean value b against the current filter. |
boolean |
accept(Object value)
Decides whether to accept the value supplied. |
boolean |
getCondition()
Returns the boolean value the supplied objects are matched against. |
Object |
getFilterPattern()
Returns the object used as the filter pattern. |
void |
setCondition(boolean value)
Sets the boolean value this filter is going to accept. |
void |
setFilterPattern(Object filter)
Sets an object as the filter pattern. |
Methods inherited from class com.sciapp.filter.Filter |
---|
getAcceptNull, setAcceptNull |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean value
Constructor Detail |
---|
public BooleanFilter()
public BooleanFilter(boolean condition)
condition
.
Method Detail |
---|
public boolean accept(Object value)
accept
in class Filter
value
- the object we want to decide if it will be filtered or not.
public boolean accept(boolean b)
b
against the current filter.
b
- a boolean value
public boolean getCondition()
public void setCondition(boolean value)
value
- the boolean value this filter is going to accept.public void setFilterPattern(Object filter)
filter
to the appropriate object.
setFilterPattern
in class Filter
filter
- the object to set as the filter patternpublic Object getFilterPattern()
getFilterPattern
in class Filter
|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |