|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.jaxb.JAXBErrorHandler
public class JAXBErrorHandler
Implementation of org.xml.sax.ErrorHandler. When JAXBMarshaller or JAXBUnmarshaller is given a ValidationEventHandler a JAXBErrorHandler is used to wrap it. This ErrorHandler is then used by the underlying XMLMarshaller or XMLUnmarshaller.
Constructor Summary | |
---|---|
JAXBErrorHandler(ValidationEventHandler validationEventHandler)
Create a new JAXBErrorHandler with the specified ValidationEventHandler |
Method Summary | |
---|---|
void |
error(org.xml.sax.SAXParseException exception)
Handle errors. |
void |
fatalError(org.xml.sax.SAXParseException exception)
Handle fatal errors. |
ValidationEventHandler |
getValidationEventHandler()
Return the ValidationEventHandler associated with this JAXBErrorHandler. |
void |
warning(org.xml.sax.SAXParseException exception)
Handle warnings The exception will be given to the ValidationEventHandler at to attempt to handle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JAXBErrorHandler(ValidationEventHandler validationEventHandler)
validationEventHandler
- Method Detail |
---|
public void warning(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
warning
in interface org.xml.sax.ErrorHandler
exception
- the SAXParseException that occurred
org.xml.sax.SAXException
public void error(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
exception
- the SAXParseException that occurred
org.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
exception
- the SAXParseException that occurred
org.xml.sax.SAXException
public ValidationEventHandler getValidationEventHandler()
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |