public void validateCompletely ( @ Nonnull final IPSErrorHandler aErrorHandler ) { ValueEnforcer . notNull ( aErrorHandler , "ErrorHandler" ) ; try { getOrCreateBoundSchema ( ) . getOriginalSchema ( ) . validateCompletely ( aErrorHandler ) ; } catch ( final RuntimeException ex ) { // May happen when XPath errors are contained } }
Use the provided error handler to validate all elements in the schematron . It tries to catch as many errors as possible .