org.mdanderson.biostat.util
Class NonWhitespaceValidator
java.lang.Object
org.mdanderson.biostat.util.ValidationAdapter
org.mdanderson.biostat.util.NonWhitespaceValidator
- All Implemented Interfaces:
- DocumentListener, EventListener, StatusSource, Validator
- public class NonWhitespaceValidator
- extends ValidationAdapter
NonWhitespaceValidator - Implements non whitespace validation.
Method Summary |
static boolean |
accepts(Object value)
Convenience function that determines whether the data is blank without
the caller having to have an instance of this class available. |
boolean |
isValid(Object value)
Determines whether the data is blank or not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NonWhitespaceValidator
public NonWhitespaceValidator()
isValid
public boolean isValid(Object value)
- Determines whether the data is blank or not.
- Specified by:
isValid
in interface Validator
- Specified by:
isValid
in class ValidationAdapter
- Parameters:
value
- object with data to be checked
- Returns:
- true if data is valid; otherwise, false
accepts
public static boolean accepts(Object value)
- Convenience function that determines whether the data is blank without
the caller having to have an instance of this class available.
- Parameters:
value
- data to be checked
- Returns:
- true if data is valid; otherwise, false
- See Also:
isValid(java.lang.Object)
Copyright © 2002 M.D. Anderson Cancer Center. All Rights Reserved.