public XMLReporter getXMLReporter() { return mConfig.getXMLReporter(); }
public void reportProblem(Location loc, String probType, String format, Object arg, Object arg2) throws XMLStreamException { XMLReporter rep = mConfig.getXMLReporter(); if (rep != null) { String msg = (arg != null || arg2 != null) ? MessageFormat.format(format, new Object[] { arg, arg2 }) : format; _reportProblem(rep, probType, msg, loc); } }
public void reportProblem(String probType, String format, Object arg, Object arg2) throws XMLStreamException { XMLReporter rep = mConfig.getXMLReporter(); if (rep != null) { _reportProblem(rep, probType, MessageFormat.format(format, new Object[] { arg, arg2 }), null); } }
protected void verifyXmlEncoding(ReaderConfig cfg) throws XMLStreamException { String inputEnc = mInputEncoding; // Close enough? if (StringUtil.equalEncodings(inputEnc, mFoundEncoding)) { return; } /* Ok, maybe the difference is just with endianness indicator? * (UTF-16BE vs. UTF-16)? */ // !!! TBI XMLReporter rep = cfg.getXMLReporter(); if (rep != null) { Location loc = getLocation(); String msg = MessageFormat.format(ErrorConsts.W_MIXED_ENCODINGS, new Object[] { mFoundEncoding, inputEnc }); String type = ErrorConsts.WT_XML_DECL; /* 30-May-2008, tatus: Should wrap all the info as XMValidationProblem * since that's Woodstox' contract wrt. relatedInformation field. */ XMLValidationProblem prob = new XMLValidationProblem(loc, msg, XMLValidationProblem.SEVERITY_WARNING, type); rep.report(msg, type, prob, loc); } }
@Override public XMLReporter getXMLReporter() { return mConfig.getXMLReporter(); }
throw WstxValidationException.create(prob); XMLReporter rep = mConfig.getXMLReporter(); if (rep != null) { _reportProblem(rep, prob);
public void reportProblem(String probType, String format, Object arg, Object arg2, Location loc) { XMLReporter rep = mConfig.getXMLReporter(); if (rep != null) { doReportProblem(rep, probType, MessageFormat.format(format, new Object[] { arg, arg2 }), loc); } }
public void reportProblem(String probType, String format, Object arg) { XMLReporter rep = mConfig.getXMLReporter(); if (rep != null) { doReportProblem(rep, probType, MessageFormat.format(format, new Object[] { arg }), null); } }
public void reportProblem(Location loc, String probType, String format, Object arg, Object arg2) throws XMLStreamException { XMLReporter rep = mConfig.getXMLReporter(); if (rep != null) { String msg = (arg != null || arg2 != null) ? MessageFormat.format(format, new Object[] { arg, arg2 }) : format; _reportProblem(rep, probType, msg, loc); } }
public void reportProblem(String probType, String format, Object arg, Object arg2) { XMLReporter rep = mConfig.getXMLReporter(); if (rep != null) { doReportProblem(rep, probType, MessageFormat.format(format, new Object[] { arg, arg2 }), null); } }
public void reportProblem(String probType, String format, Object arg, Object arg2) throws XMLStreamException { XMLReporter rep = mConfig.getXMLReporter(); if (rep != null) { _reportProblem(rep, probType, MessageFormat.format(format, new Object[] { arg, arg2 }), null); } }
public void reportProblem(String probType, String format, Object arg, Object arg2) { XMLReporter rep = mConfig.getXMLReporter(); if (rep != null) { doReportProblem(rep, probType, MessageFormat.format(format, new Object[] { arg, arg2 }), null); } }
@Override public void reportProblem(Location loc, String probType, String format, Object arg, Object arg2) throws XMLStreamException { XMLReporter rep = mConfig.getXMLReporter(); if (rep != null) { String msg = (arg != null || arg2 != null) ? MessageFormat.format(format, new Object[] { arg, arg2 }) : format; _reportProblem(rep, probType, msg, loc); } }
public void reportProblem(String probType, String format, Object arg, Object arg2) throws XMLStreamException { XMLReporter rep = mConfig.getXMLReporter(); if (rep != null) { _reportProblem(rep, probType, MessageFormat.format(format, new Object[] { arg, arg2 }), null); } }
public void reportProblem(String probType, String format, Object arg) { XMLReporter rep = mConfig.getXMLReporter(); if (rep != null) { doReportProblem(rep, probType, MessageFormat.format(format, new Object[] { arg }), null); } }
public void reportProblem(String probType, String format, Object arg, Object arg2, Location loc) { XMLReporter rep = mConfig.getXMLReporter(); if (rep != null) { doReportProblem(rep, probType, MessageFormat.format(format, new Object[] { arg, arg2 }), loc); } }
if (m.size() > 0 && (old = m.get(id)) != null) { XMLReporter rep = mConfig.getXMLReporter(); if (rep != null) { EntityDecl oldED = (EntityDecl) old;
_reportProblem(mConfig.getXMLReporter(), ErrorConsts.WT_DT_DECL, "Value to set for feature "+FEATURE_DTD_OVERRIDE+" not a native Woodstox DTD implementation (but "+mDTD.getClass()+"): can not access full entity or notation information", null);
XMLReporter rep = mConfig.getXMLReporter(); if (rep != null) { String msg = MessageFormat.format(ErrorConsts.W_DTD_ATTR_REDECL, new Object[] { attrName, elem });
return willSupportDTDs() ? Boolean.TRUE : Boolean.FALSE; case PROP_WARNING_REPORTER: return getXMLReporter(); case PROP_XML_RESOLVER: return getXMLResolver();