Class ClientInputValidate
java.lang.Object
za.co.wethinkcode.robots.client.commands.ClientInputValidate
-
Constructor Summary
ConstructorsConstructorDescriptionempty constructor for validating user input validatorClientInputValidate(String[] acceptedInputs) Overload for Constructor for Input Validator that accepts a new string of acceptable argumentsClientInputValidate(ArrayList<String> acceptedInputs) Overload for Constructor for Input Validator that accepts a new string of acceptable arguments -
Method Summary
Modifier and TypeMethodDescriptionbooleanvalidateInput(String input) booleanvalidateLaunch(String input) Specific utility for validating launch as a first commandvalidatePartialInput(String input)
-
Constructor Details
-
ClientInputValidate
Overload for Constructor for Input Validator that accepts a new string of acceptable arguments- Parameters:
acceptedInputs- new inputs to accept
-
ClientInputValidate
Overload for Constructor for Input Validator that accepts a new string of acceptable arguments- Parameters:
acceptedInputs- new inputs to accept
-
ClientInputValidate
public ClientInputValidate()empty constructor for validating user input validator
-
-
Method Details
-
validateLaunch
Specific utility for validating launch as a first command- Parameters:
input- user input- Returns:
- if this command meets the required launch syntax
-
validateInput
-
validatePartialInput
-