|
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
public abstract class Filter
This abstract class defines a filter.
The function of a filter is simple: given an object as argument, it tests
whether the object matches the filter's set of rules, by calling the accept
method.
Field Summary | |
---|---|
protected boolean |
acceptNull
boolean indicating if the filter is going to accept null values. |
Constructor Summary | |
---|---|
Filter()
Creates a Filter object that will not accept null values. |
Method Summary | |
---|---|
abstract boolean |
accept(Object o)
Decides whether to accept the value supplied. |
boolean |
getAcceptNull()
Returns true if the filter should let null values pass through. |
abstract Object |
getFilterPattern()
Returns the object used as the filter pattern. |
void |
setAcceptNull(boolean acceptNull)
Sets the behaviour of the filter when null values are passed in the accept method. |
abstract void |
setFilterPattern(Object filter)
Sets an object as the filter pattern. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean acceptNull
Constructor Detail |
---|
public Filter()
Method Detail |
---|
public abstract boolean accept(Object o)
o
- the object we want to decide if it will be filtered or not.
public boolean getAcceptNull()
public abstract Object getFilterPattern()
public void setAcceptNull(boolean acceptNull)
accept
method.
If acceptNull is true, the filter should let null values pass through, filter them out otherwise.
acceptNull
- a booleanpublic abstract void setFilterPattern(Object filter)
filter
to the appropriate object.
filter
- the object to set as the filter pattern
|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |