|
MDACC Biostatistics |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mdanderson.biostat.util.ValidationAdapter
org.mdanderson.biostat.util.NumericValidator
NumericValidator - Implements numeric validation.
Constructor Summary | |
NumericValidator()
|
Method Summary | |
static boolean |
accepts(Object value)
Convenience function that determines the validity of numeric data without the caller having to have an instance of this class available. |
boolean |
isValid(Object value)
Determines the validity of numeric data. |
void |
setRange(double min,
double max)
Sets the allowed range of values |
Methods inherited from class org.mdanderson.biostat.util.ValidationAdapter |
addStatusListener, changedUpdate, insertUpdate, removeStatusListener, removeUpdate, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NumericValidator()
Method Detail |
public void setRange(double min, double max)
min
- minimum double value allowed (inclusive)max
- maximum double value allowed (inclusive)public boolean isValid(Object value)
isValid
in interface Validator
isValid
in class ValidationAdapter
value
- object with data to be checked
public static boolean accepts(Object value)
value
- data to be checked
isValid(java.lang.Object)
|
MDACC Biostatistics |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |