protected void doReportProblem(XMLReporter rep, String probType, String msg, Location loc) throws XMLStreamException { if (loc == null) { loc = getLocation(); } doReportProblem(rep, new XMLValidationProblem(loc, msg, XMLValidationProblem.SEVERITY_ERROR, probType)); }
doReportProblem(rep, prob); } else {
protected void doReportProblem(XMLReporter rep, String probType, String msg, Location loc) throws XMLStreamException { if (loc == null) { loc = getLocation(); } doReportProblem(rep, new XMLValidationProblem(loc, msg, XMLValidationProblem.SEVERITY_ERROR, probType)); }
protected void doReportProblem(XMLReporter rep, String probType, String msg, Location loc) throws XMLStreamException { if (loc == null) { loc = getLocation(); } doReportProblem(rep, new XMLValidationProblem(loc, msg, XMLValidationProblem.SEVERITY_ERROR, probType)); }
protected void doReportProblem(XMLReporter rep, String probType, String msg, Location loc) throws XMLStreamException { if (loc == null) { loc = getLocation(); } doReportProblem(rep, new XMLValidationProblem(loc, msg, XMLValidationProblem.SEVERITY_ERROR, probType)); }
protected void doReportProblem(XMLReporter rep, String probType, String msg, Location loc) throws XMLStreamException { if (loc == null) { loc = getLocation(); } doReportProblem(rep, new XMLValidationProblem(loc, msg, XMLValidationProblem.SEVERITY_ERROR, probType)); }
doReportProblem(rep, prob); } else {
doReportProblem(rep, prob); } else {
doReportProblem(rep, prob); } else {
public void reportProblem(XMLValidationProblem prob) throws XMLValidationException { // Custom handler set? If so, it'll take care of it: if (mVldProbHandler != null) { mVldProbHandler.reportProblem(prob); return; } /* For now let's implement basic functionality: warnings get * reported via XMLReporter, errors and fatal errors result in * immediate exceptions. */ if (prob.getSeverity() >= XMLValidationProblem.SEVERITY_ERROR) { if (isValidating()) { throw WstxValidationException.create(prob); } } XMLReporter rep = mConfig.getProblemReporter(); if (rep != null) { doReportProblem(rep, ErrorConsts.WT_VALIDATION, prob.getMessage(), prob.getLocation()); } }
doReportProblem(rep, prob); } else {
public void reportProblem(XMLValidationProblem prob) throws XMLValidationException { // Custom handler set? If so, it'll take care of it: if (mVldProbHandler != null) { mVldProbHandler.reportProblem(prob); return; } /* For now let's implement basic functionality: warnings get * reported via XMLReporter, errors and fatal errors result in * immediate exceptions. */ if (prob.getSeverity() >= XMLValidationProblem.SEVERITY_ERROR) { if (isValidating()) { throw WstxValidationException.create(prob); } } XMLReporter rep = mConfig.getProblemReporter(); if (rep != null) { doReportProblem(rep, ErrorConsts.WT_VALIDATION, prob.getMessage(), prob.getLocation()); } }
public void reportProblem(XMLValidationProblem prob) throws XMLValidationException { // Custom handler set? If so, it'll take care of it: if (mVldProbHandler != null) { mVldProbHandler.reportProblem(prob); return; } /* For now let's implement basic functionality: warnings get * reported via XMLReporter, errors and fatal errors result in * immediate exceptions. */ if (prob.getSeverity() >= XMLValidationProblem.SEVERITY_ERROR) { if (isValidating()) { throw WstxValidationException.create(prob); } } XMLReporter rep = mConfig.getProblemReporter(); if (rep != null) { doReportProblem(rep, ErrorConsts.WT_VALIDATION, prob.getMessage(), prob.getLocation()); } }