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
-
Method Summary
-
Constructor Details
-
NotEmptyValidator
create a new NotEmptyValidator.- Parameters:
parameterValue
- value to validate
-
-
Method Details
-
validate
Description copied from interface:AccountParameterValidator
validates a parameter provided for account creation.- Specified by:
validate
in interfaceAccountParameterValidator
- Returns:
null
in case the parameter is valid, or an error otherwise
-