Class IsNotCharacterNameValidator
java.lang.Object
games.stendhal.server.core.account.IsNotCharacterNameValidator
- All Implemented Interfaces:
AccountParameterValidator
validates the new account name is not a character name
- Author:
- kymara
-
Constructor Summary
ConstructorDescriptionIsNotCharacterNameValidator(String username)
creates an IsNotCharacterNameValidator. -
Method Summary
-
Constructor Details
-
IsNotCharacterNameValidator
creates an IsNotCharacterNameValidator.- Parameters:
username
- account username of character creator
-
-
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
-