private boolean validate ( ConsoleReaderWrapper consoleReaderWrapper , String input ) { Iterable < String > errors = validate ( input ) ; if ( ! Iterables . isEmpty ( errors ) ) { consoleReaderWrapper . beep ( ) ; for ( String error : errors ) { consoleReaderWrapper . print ( error ) ; } return false ; } else { return true ; } }
Validate user input with available validators