|
Oracle® XML Java API Reference 10g Release 1 (10.1) B12024-02 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--oracle.xml.schemavalidator.DocErrorHandler
This class implements the three methods,i.e., error(),warning(), fatalError() defined in the ErrorHandler interface. All three methods adds the line, column, node information along with the error message to a vector maintained internally. This handler is useful in getting a dump of the error that occured during the schema validation.
| Constructor Summary | |
DocErrorHandler()Default Constructor for the ErrorHandler | |
| Method Summary | |
void |
error(SAXParseException ex)Adds a Error message to the vector |
void |
fatalError(SAXParseException ex)Adds a fatalError message to the vector |
java.util.Vector |
getErrorList()Gets the List of Error messages returned by the Validator. |
int |
getNumErrors()Gets the List of Error messages returned by the Validator. |
void |
warning(SAXParseException ex)Adds a warning message to the vector |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DocErrorHandler()
throws java.io.IOException,
java.io.FileNotFoundException
| Method Detail |
public void warning(SAXParseException ex)
throws SAXException
warning in interface ErrorHandlerex - The warning information encapsulated in a SAX parse exception.- - SAXExceptionSAXException - Any SAX exception, possibly wrapping another exception.SAXParseException
public void error(SAXParseException ex)
throws SAXException
error in interface ErrorHandlerex - The error information encapsulated in a SAX parse exception.- - SAXExceptionSAXException - Any SAX exception, possibly wrapping another exception.SAXParseException
public void fatalError(SAXParseException ex)
throws SAXException
fatalError in interface ErrorHandlerex - The error information encapsulated in a SAX parse exception.- - SAXExceptionSAXException - Any SAX exception, possibly wrapping another exception.SAXParseExceptionpublic java.util.Vector getErrorList()
public int getNumErrors()
|
Oracle® XML Java API Reference 10g Release 1 (10.1) B12024-02 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||