Class NonEmptyValidator
java.lang.Object
NonEmptyValidator
- All Implemented Interfaces:
- Validator
public class NonEmptyValidator
- extends Object
- implements Validator
An input dialog that accepts and returns any non-empty string
entered by the user.
Method Summary |
String |
parse(String original)
Returns the original string, if non-empty. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NonEmptyValidator
public NonEmptyValidator()
parse
public String parse(String original)
throws ValidatorException
- Returns the original string, if non-empty.
- Specified by:
parse
in interface Validator
- Parameters:
original
- String
- Returns:
- original String
- Throws:
ValidatorException
- if an empty string