Class MinLengthValidator
java.lang.Object
games.stendhal.server.core.account.MinLengthValidator
- All Implemented Interfaces:
AccountParameterValidator
validates that the given parameter is provided has a minimum length.
- Author:
- hendrik
-
Constructor Summary
ConstructorDescriptionMinLengthValidator(String parameterValue, int minLength)
create a new MinLengthValidator. -
Method Summary
-
Constructor Details
-
MinLengthValidator
create a new MinLengthValidator.- Parameters:
parameterValue
- value to validateminLength
- minimum required length
-
-
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
-