public class XTCESchemaErrorHandler extends Object implements ErrorHandler, ValidationEventHandler
| Constructor and Description |
|---|
XTCESchemaErrorHandler()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
error(SAXParseException ex)
Method to capture errors from the SAX parser.
|
void |
fatalError(IOException ex)
Method to capture fatal errors from the SAX parser.
|
void |
fatalError(SAXException ex)
Method to capture fatal errors from the SAX parser.
|
void |
fatalError(SAXParseException ex)
Method to capture fatal errors from the SAX parser.
|
long |
getErrorCount()
Retrieve the count of the errors that were logged by SAX during
validation of the XTCE document.
|
List<String> |
getMessages()
Retrieve the list of messages collected by SAX during validation of the
XTCE document.
|
long |
getWarningCount()
Retrieve the count of the warnings that were logged by SAX during
validation of the XTCE document.
|
boolean |
handleEvent(ValidationEvent event)
Method to capture schema validation events that occur during the JAXB
unmarshal operation.
|
void |
warning(SAXParseException ex)
Method to capture warnings from the SAX parser.
|
public void error(SAXParseException ex)
error in interface ErrorHandlerex - Exception received from SAX to interrogate.public void warning(SAXParseException ex)
warning in interface ErrorHandlerex - Exception received from SAX to interrogate.public void fatalError(SAXParseException ex)
fatalError in interface ErrorHandlerex - Exception received from SAX to interrogate.public void fatalError(SAXException ex)
ex - Exception received from SAX to interrogate.public void fatalError(IOException ex)
ex - Exception received from file reading to interrogate.public boolean handleEvent(ValidationEvent event)
handleEvent in interface ValidationEventHandlerevent - ValidationEvent containing the message of interest.public List<String> getMessages()
public long getWarningCount()
public long getErrorCount()
Copyright © 2015–2019. All rights reserved.