protected static class AbstractConfiguredDOMBuilder.SaxErrorCollector
extends java.lang.Object
implements org.xml.sax.ErrorHandler
Modifier and Type | Field and Description |
---|---|
private boolean |
_collectAll |
private SaxErrorData |
_data |
Constructor and Description |
---|
AbstractConfiguredDOMBuilder.SaxErrorCollector(SaxErrorData data,
boolean collectAll)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
error(org.xml.sax.SAXParseException e) |
void |
fatalError(org.xml.sax.SAXParseException e) |
SaxErrorData |
getData() |
private java.lang.String |
getParseExceptionInfo(org.xml.sax.SAXParseException e) |
boolean |
isCollectAll() |
void |
warning(org.xml.sax.SAXParseException e) |
private final SaxErrorData _data
private final boolean _collectAll
AbstractConfiguredDOMBuilder.SaxErrorCollector(SaxErrorData data, boolean collectAll)
data
- data structure to fill with warnings, errors and fatals.collectAll
- whether to collect all the issues during parsing (i.e., do the parsing until
the end), or to throw exception at the first error or fatal error.private java.lang.String getParseExceptionInfo(org.xml.sax.SAXParseException e)
public SaxErrorData getData()
public boolean isCollectAll()
public void warning(org.xml.sax.SAXParseException e)
warning
in interface org.xml.sax.ErrorHandler
public void error(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
Copyright 2009-2015 Tatjana (Tanja) Kostic