@Override
    public void validate(String s) throws ValidationError {
        try {
            xv.validate(s);
        } catch (SAXParseException e) {
            final String name = e.getSystemId();
            final String msg = e.getMessage();
            final int line = e.getLineNumber();
            final int column = e.getColumnNumber();
            throw new ValidationError(name, msg, e, line, column);
        } catch (SAXException e) {
            // TODO This isn't the intended design here
            throw new RuntimeException(e);
        } catch (IOException e) {
            // TODO This isn't the intended design here
            throw new RuntimeException(e);
        }
    }
@ Override public void validate ( String s ) throws ValidationError { try { xv . validate ( s ) ; } catch ( SAXParseException e ) { final String name = e . getSystemId ( ) ; final String msg = e . getMessage ( ) ; final int line = e . getLineNumber ( ) ; final int column = e . getColumnNumber ( ) ; throw new ValidationError ( name , msg , e , line , column ) ; } catch ( SAXException e ) { throw new RuntimeException ( e ) ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } }
{@inheritDoc}