@ Nonnull public final Validator getValidatorFromSchema ( @ Nonnull final Schema aSchema ) { ValueEnforcer . notNull ( aSchema , "Schema" ) ; final Validator aValidator = aSchema . newValidator ( ) ; aValidator . setErrorHandler ( m_aSchemaFactory . getErrorHandler ( ) ) ; return aValidator ; }
Utility method to get the validator for a given schema using the error handler provided in the constructor .