stsci.criteria
Interface Criteria

All Known Implementing Classes:
CriteriaImp

public interface Criteria

Try if an object ,meets the criteria return true if it does false if not. Also allow switching on/off of criteria when a criteria is off it returns the value passed when it is switched off (setOff). * @author


Method Summary
 boolean apply(java.lang.Object obj)
           
 void setOff(boolean b)
          the value to be returned when this is off.
 void setOn(boolean b)
          allow this to be set on or off * @param b
 

Method Detail

apply

public boolean apply(java.lang.Object obj)
Parameters:
obj -  
Returns:
boolean
Throws:
-  

setOn

public void setOn(boolean b)
allow this to be set on or off * @param b
Returns:
void
Throws:
-  

setOff

public void setOff(boolean b)
the value to be returned when this is off. * @param b
Returns:
void
Throws:
-