List of usage examples for javax.xml.bind ValidationEvent getMessage
public String getMessage();
From source file:org.sweble.wikitext.dumpreader.DumpReader.java
protected boolean processEvent(ValidationEvent ve, ValidationEventLocator vel) throws Exception { logger.warn(String.format("%s:%d:%d: %s", dumpUri, vel.getLineNumber(), vel.getColumnNumber(), ve.getMessage())); return true;//from w w w.jav a 2 s .c o m }
From source file:securitytools.veracode.http.VeracodeValidationEventHandler.java
@Override public boolean handleEvent(ValidationEvent event) { StringBuilder sb = new StringBuilder(); sb.append("Severity=").append(event.getSeverity()).append(" "); sb.append("Message=").append(event.getMessage()).append(" "); sb.append("LinkedException=").append(event.getLinkedException()).append(" "); sb.append("Line=").append(event.getLocator().getLineNumber()).append(" "); sb.append("Column=").append(event.getLocator().getColumnNumber()).append(" "); sb.append("Offset=").append(event.getLocator().getOffset()).append(" "); sb.append("Object=").append(event.getLocator().getObject()).append(" "); sb.append("Node=").append(event.getLocator().getNode()).append(" "); sb.append("URL=").append(event.getLocator().getURL()); LOG.error(sb.toString(), event.getLinkedException()); return true;//ww w.j a v a 2 s . c o m }