protected ValidityViolation onError(String msg, ErrorInfo ei) throws SAXException { ValidityViolation vv = new ValidityViolation(locator, msg, ei); hadError = true; if (errorHandler != null && panicLevel == 0) errorHandler.error(vv); panicLevel = initialPanicLevel; return vv; }
System.out.println( name + ':' + fileName + " invalid " + vv.getMessage() );
parser.parse(source); } catch( ValidityViolation vv ) { System.out.println(vv.getMessage()); return null;
protected ValidityViolation onError(String msg, ErrorInfo ei) throws SAXException { ValidityViolation vv = new ValidityViolation(locator, msg, ei); hadError = true; if (errorHandler != null && panicLevel == 0) errorHandler.error(vv); panicLevel = initialPanicLevel; return vv; }
protected ValidityViolation onError(String msg, ErrorInfo ei) throws SAXException { ValidityViolation vv = new ValidityViolation(locator, msg, ei); hadError = true; if (errorHandler != null && panicLevel == 0) errorHandler.error(vv); panicLevel = initialPanicLevel; return vv; }
protected ValidityViolation onError(String msg, ErrorInfo ei) throws SAXException { ValidityViolation vv = new ValidityViolation(locator, msg, ei); hadError = true; if (errorHandler != null && panicLevel == 0) errorHandler.error(vv); panicLevel = initialPanicLevel; return vv; }
protected void reportError( Locator loc, ErrorInfo ei, String propKey, Object[] args ) throws SAXException { hadError = true; errorHandler.error( new ValidityViolation( loc, localizeMessage(propKey,args), ei ) ); }
protected void reportError( Locator loc, ErrorInfo ei, String propKey, Object[] args ) throws SAXException { hadError = true; errorHandler.error( new ValidityViolation( loc, localizeMessage(propKey,args), ei ) ); }
protected void reportError( Locator loc, ErrorInfo ei, String propKey, Object[] args ) throws SAXException { hadError = true; errorHandler.error( new ValidityViolation( loc, localizeMessage(propKey,args), ei ) ); }
protected void reportError( Locator loc, ErrorInfo ei, String propKey, Object[] args ) throws SAXException { hadError = true; errorHandler.error( new ValidityViolation( loc, localizeMessage(propKey,args), ei ) ); }
protected void verifyText() throws SAXException { if(text.length()!=0) { final String txt = new String(text); if(!current.onText2( txt, this, null, characterType )) { // error // diagnose error, if possible StringRef err = new StringRef(); current.onText2( txt, this, err, null ); // report an error errorHandler.error( new ValidityViolation(locator, localizeMessage( ERR_UNEXPECTED_TEXT, null ), new ErrorInfo.BadText(txt) ) ); } // characters are validated. report to the handler. reportCharacterChunks( txt, characterType.types ); text = new StringBuffer(); } }
protected void verifyText() throws SAXException { if(text.length()!=0) { final String txt = new String(text); if(!current.onText2( txt, this, null, characterType )) { // error // diagnose error, if possible StringRef err = new StringRef(); current.onText2( txt, this, err, null ); // report an error errorHandler.error( new ValidityViolation(locator, localizeMessage( ERR_UNEXPECTED_TEXT, null ), new ErrorInfo.BadText(txt) ) ); } // characters are validated. report to the handler. reportCharacterChunks( txt, characterType.types ); text = new StringBuffer(); } }
protected void verifyText() throws SAXException { if(text.length()!=0) { final String txt = new String(text); if(!current.onText2( txt, this, null, characterType )) { // error // diagnose error, if possible StringRef err = new StringRef(); current.onText2( txt, this, err, null ); // report an error errorHandler.error( new ValidityViolation(locator, localizeMessage( ERR_UNEXPECTED_TEXT, null ), new ErrorInfo.BadText(txt) ) ); } // characters are validated. report to the handler. reportCharacterChunks( txt, characterType.types ); text = new StringBuffer(); } }
protected void verifyText() throws SAXException { if(text.length()!=0) { final String txt = new String(text); if(!current.onText2( txt, this, null, characterType )) { // error // diagnose error, if possible StringRef err = new StringRef(); current.onText2( txt, this, err, null ); // report an error errorHandler.error( new ValidityViolation(locator, localizeMessage( ERR_UNEXPECTED_TEXT, null ), new ErrorInfo.BadText(txt) ) ); } // characters are validated. report to the handler. reportCharacterChunks( txt, characterType.types ); text = new StringBuffer(); } }