Class NonEmptyValidator

java.lang.Object
  extended by 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.


Constructor Summary
NonEmptyValidator()
           
 
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
 

Constructor Detail

NonEmptyValidator

public NonEmptyValidator()
Method Detail

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