|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcdox.util.XMLErrorHandler
This class can be used as general error handler if one wants to know about the errors but not to take an action if any error occurs. The complete errors can be asked about after parsing (possibly also while parsing).
| Constructor Summary | |
XMLErrorHandler()
|
|
| Method Summary | |
void |
error(org.xml.sax.SAXParseException e)
|
void |
fatalError(org.xml.sax.SAXParseException e)
|
java.util.Iterator |
getErrors()
Returns the errors as string objects in an iterator. |
java.util.Iterator |
getFatalErrors()
Returns the fatal errors as string objects in an iterator. |
int |
getNumberOfErrors()
Returns the number of errors. |
int |
getNumberOfFatalErrors()
Returns the number of fatal errors. |
int |
getNumberOfWarnings()
Returns the number of warnings. |
java.util.Iterator |
getWarnings()
Returns the warnings as string objects in an iterator. |
boolean |
validated()
Returns true, if no errors, fatal errors and warnings occured. |
void |
warning(org.xml.sax.SAXParseException e)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XMLErrorHandler()
| Method Detail |
public void error(org.xml.sax.SAXParseException e)
error in interface org.xml.sax.ErrorHandlerpublic void fatalError(org.xml.sax.SAXParseException e)
fatalError in interface org.xml.sax.ErrorHandlerpublic void warning(org.xml.sax.SAXParseException e)
warning in interface org.xml.sax.ErrorHandlerpublic int getNumberOfErrors()
public int getNumberOfFatalErrors()
public int getNumberOfWarnings()
public boolean validated()
public java.util.Iterator getErrors()
Iterator value.public java.util.Iterator getFatalErrors()
Iterator value.public java.util.Iterator getWarnings()
Iterator value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||