org.objectweb.jorm.xml2mi.api
Class ParserErrorHandler
DefaultHandler
org.objectweb.jorm.xml2mi.api.ParserErrorHandler
public class ParserErrorHandler
extends DefaultHandler
The ParserErrorHandler object extends the DefaultHandler from sax.
This object is given to the DOM parser to handle potential errors.
- X. Spengler
void | error(SAXParseException e) - Adds a new exception to the current vector of exceptions.
|
Vector | getErrors() - Returns the vector of errors.
|
void | initialize() - Resets the vector of errors.
|
int | numErrors() - Allows to know the number of handled errors.
|
void | warning(SAXParseException e) - Adds a new exception to the current vector of exceptions.
|
ParserErrorHandler
public ParserErrorHandler()
Builds a new ParserErrorHandler for the DOM parser.
error
public void error(SAXParseException e)
throws SAXException
Adds a new exception to the current vector of exceptions.
e
- a new SAXParseException to register
getErrors
public Vector getErrors()
Returns the vector of errors.
- the current vector of errors
initialize
public void initialize()
Resets the vector of errors.
numErrors
public int numErrors()
Allows to know the number of handled errors.
- the current number of errors
warning
public void warning(SAXParseException e)
throws SAXException
Adds a new exception to the current vector of exceptions.
e
- a new SAXParseException to register