|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--stsci.criteria.CriteriaImp
This implmements the on/off part of the criteria interface sub classes must imlement match(obj) which is called only of the criteria is on.
Field Summary | |
protected boolean |
off
|
protected boolean |
on
|
Constructor Summary | |
CriteriaImp()
|
Method Summary | |
boolean |
apply(java.lang.Object obj)
Call match if this is "on" otherwise retuirn true. |
abstract boolean |
match(java.lang.Object obj)
This must be implemented by sub classses to do the match |
void |
setOff(boolean b)
the value to be returned when this is off. |
void |
setOn(boolean b)
allow turning on on and off if its on it returns the match value if off return Off value. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected boolean on
protected boolean off
Constructor Detail |
public CriteriaImp()
Method Detail |
public void setOn(boolean b)
setOn
in interface Criteria
stsci.criteria.Criteria
- public void setOff(boolean b)
Criteria
setOff
in interface Criteria
stsci.criteria.Criteria
- public abstract boolean match(java.lang.Object obj)
public boolean apply(java.lang.Object obj)
apply
in interface Criteria
stsci.criteria.Criteria
obj
-
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |