public void reportUndeclared(ValidationContext ctxt, XMLValidator dtd) throws XMLStreamException { String msg = MessageFormat.format(ErrorConsts.ERR_DTD_UNDECLARED_ENTITY, new Object[] { (mIsPe ? "parsed" : "general"), mName }); XMLValidationProblem prob = new XMLValidationProblem (mLocation, msg, XMLValidationProblem.SEVERITY_FATAL); prob.setReporter(dtd); ctxt.reportProblem(prob); } }
private void reportError(String msg, Location loc) throws XMLStreamException { XMLValidationProblem prob = new XMLValidationProblem(loc, msg, XMLValidationProblem.SEVERITY_ERROR); prob.setReporter(this); mContext.reportProblem(prob); } }
protected void doReportValidationProblem(String msg, Location loc) throws XMLStreamException { if (loc == null) { loc = getLocation(); } XMLValidationProblem prob = new XMLValidationProblem(loc, msg, XMLValidationProblem.SEVERITY_ERROR); prob.setReporter(this); mContext.reportProblem(prob); }
public String validateAttribute(String localName, String uri, String prefix, String value) throws XMLStreamException { mCurrAttrLocalName = localName; mCurrAttrPrefix = prefix; if (mCurrAcceptor != null) { String qname = localName; // for now, let's assume we don't need prefixed version DatatypeRef typeRef = null; // for now, let's not care /* 31-Mar-2006, TSa: MSV seems to require empty String for empty/no * namespace, not null. */ if (uri == null) { uri = ""; } if (!mCurrAcceptor.onAttribute2(uri, localName, qname, value, this, mErrorRef, typeRef) || mErrorRef.str != null) { reportError(mErrorRef); } if (mProblem != null) { // pending problems (to throw exception on)? XMLValidationProblem p = mProblem; mProblem = null; mContext.reportProblem(p); } } /* No normalization done by RelaxNG, is there? (at least nothing * visible to callers that is) */ return null; }
XMLValidationProblem p = mProblem; mProblem = null; mContext.reportProblem(p);
public void reportUndeclared(ValidationContext ctxt) throws XMLValidationException { String msg = MessageFormat.format(ErrorConsts.ERR_DTD_UNDECLARED_ENTITY, new Object[] { (mIsPe ? "parsed" : "general"), mName }); ctxt.reportProblem(new XMLValidationProblem (mLocation, msg, XMLValidationProblem.SEVERITY_FATAL)); } }
public void reportUndeclared(ValidationContext ctxt) throws XMLValidationException { String msg = MessageFormat.format(ErrorConsts.ERR_DTD_UNDECLARED_ENTITY, new Object[] { (mIsPe ? "parsed" : "general"), mName }); ctxt.reportProblem(new XMLValidationProblem (mLocation, msg, XMLValidationProblem.SEVERITY_FATAL)); } }
public void reportUndeclared(ValidationContext ctxt, XMLValidator dtd) throws XMLStreamException { String msg = MessageFormat.format(ErrorConsts.ERR_DTD_UNDECLARED_ENTITY, new Object[] { (mIsPe ? "parsed" : "general"), mName }); XMLValidationProblem prob = new XMLValidationProblem (mLocation, msg, XMLValidationProblem.SEVERITY_FATAL); prob.setReporter(dtd); ctxt.reportProblem(prob); } }
public void reportUndeclared(ValidationContext ctxt, XMLValidator dtd) throws XMLStreamException { String msg = MessageFormat.format(ErrorConsts.ERR_DTD_UNDECLARED_ENTITY, new Object[] { (mIsPe ? "parsed" : "general"), mName }); XMLValidationProblem prob = new XMLValidationProblem (mLocation, msg, XMLValidationProblem.SEVERITY_FATAL); prob.setReporter(dtd); ctxt.reportProblem(prob); } }
private void reportError(String msg, Location loc) throws XMLStreamException { XMLValidationProblem prob = new XMLValidationProblem(loc, msg, XMLValidationProblem.SEVERITY_ERROR); prob.setReporter(this); mContext.reportProblem(prob); }
protected void doReportValidationProblem(String msg, Location loc) throws XMLValidationException { if (loc == null) { loc = getLocation(); } mContext.reportProblem(new XMLValidationProblem(loc, msg, XMLValidationProblem.SEVERITY_ERROR)); }
private void reportError(String msg, Location loc) throws XMLStreamException { XMLValidationProblem prob = new XMLValidationProblem(loc, msg, XMLValidationProblem.SEVERITY_ERROR); prob.setReporter(this); mContext.reportProblem(prob); } }
private void reportError(String msg, Location loc) throws XMLStreamException { XMLValidationProblem prob = new XMLValidationProblem(loc, msg, XMLValidationProblem.SEVERITY_ERROR); prob.setReporter(this); mContext.reportProblem(prob); } }
private void reportError(String msg, Location loc) throws XMLStreamException { XMLValidationProblem prob = new XMLValidationProblem(loc, msg, XMLValidationProblem.SEVERITY_ERROR); prob.setReporter(this); mContext.reportProblem(prob); }
private void reportError(StringRef errorRef) throws XMLValidationException { String msg = errorRef.str; errorRef.str = null; if (msg == null) { msg = "Unknown reason"; } mContext.reportProblem(new XMLValidationProblem (mContext.getValidationLocation(), msg, XMLValidationProblem.SEVERITY_ERROR)); } }
protected void doReportValidationProblem(String msg, Location loc) throws XMLValidationException { if (loc == null) { loc = getLocation(); } mContext.reportProblem(new XMLValidationProblem(loc, msg, XMLValidationProblem.SEVERITY_ERROR)); }
protected void doReportValidationProblem(String msg, Location loc) throws XMLStreamException { if (loc == null) { loc = getLocation(); } XMLValidationProblem prob = new XMLValidationProblem(loc, msg, XMLValidationProblem.SEVERITY_ERROR); prob.setReporter(this); mContext.reportProblem(prob); }
protected void doReportValidationProblem(String msg, Location loc) throws XMLStreamException { if (loc == null) { loc = getLocation(); } XMLValidationProblem prob = new XMLValidationProblem(loc, msg, XMLValidationProblem.SEVERITY_ERROR); prob.setReporter(this); mContext.reportProblem(prob); }
protected void doReportValidationProblem(String msg, Location loc) throws XMLStreamException { if (loc == null) { loc = getLocation(); } XMLValidationProblem prob = new XMLValidationProblem(loc, msg, XMLValidationProblem.SEVERITY_ERROR); prob.setReporter(this); mContext.reportProblem(prob); }
protected void doReportValidationProblem(String msg, Location loc) throws XMLStreamException { if (loc == null) { loc = getLocation(); } XMLValidationProblem prob = new XMLValidationProblem(loc, msg, XMLValidationProblem.SEVERITY_ERROR); prob.setReporter(this); mContext.reportProblem(prob); }