Class NotEmptyValidator
java.lang.Object
games.stendhal.server.core.account.NotEmptyValidator
- All Implemented Interfaces:
AccountParameterValidator
validates that the given parameter is neither null nor the empty string.
- Author:
- hendrik
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NotEmptyValidator
create a new NotEmptyValidator.- Parameters:
parameterValue- value to validate
-
-
Method Details
-
validate
Description copied from interface:AccountParameterValidatorvalidates a parameter provided for account creation.- Specified by:
validatein interfaceAccountParameterValidator- Returns:
nullin case the parameter is valid, or an error otherwise
-