org.apache.pivot.wtk.validation
Class NotEmptyTextValidator
java.lang.Object
org.apache.pivot.wtk.validation.NotEmptyTextValidator
- All Implemented Interfaces:
- Validator
public class NotEmptyTextValidator
- extends Object
- implements Validator
A validator for a (trimmed) not empty text.
Method Summary |
boolean |
isValid(String text)
Determines if a text value is valid based on the rules of the
validator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotEmptyTextValidator
public NotEmptyTextValidator()
isValid
public boolean isValid(String text)
- Description copied from interface:
Validator
- Determines if a text value is valid based on the rules of the
validator.
- Specified by:
isValid
in interface Validator
- Returns:
- true if the value is valid; false, otherwise.