validate abstract method

  1. @visibleForTesting
String validate(
  1. String line
)

This method is called by ask to valiate the string entered by the user. It should throw an AskValidatorException if the input is invalid. The validate method is called when the user hits the enter key. If the validation succeeds the validated line is returned.

Implementation

@visibleForTesting
String validate(String line);