|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.virtuosotechnologies.lib.xml.MessageCollectingErrorHandler
ErrorHandler that collects messages
Constructor Summary | |
MessageCollectingErrorHandler(int maxerrors,
int maxwarnings)
Constructor |
Method Summary | |
void |
error(SAXParseException ex)
|
void |
fatalError(SAXParseException ex)
|
boolean |
hasErrors()
Returns true if at least one error was reported |
boolean |
hasMessages()
Returns true if at least one message (error or warning) was reported |
String |
toString()
Get the string |
void |
warning(SAXParseException ex)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MessageCollectingErrorHandler(int maxerrors, int maxwarnings)
maxerrors
- maximum number of errors to collect. If more errors are
reported, this terminates parsing.maxwarnings
- maximum number of warnings to collect. If more warnings are
reported, they are discarded.Method Detail |
public boolean hasErrors()
public boolean hasMessages()
public void error(SAXParseException ex) throws SAXException
error
in interface ErrorHandler
SAXException
public void fatalError(SAXParseException ex) throws SAXException
fatalError
in interface ErrorHandler
SAXException
public void warning(SAXParseException ex) throws SAXException
warning
in interface ErrorHandler
SAXException
public String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |