org.apache.servicemix.validation.handler
Interface MessageAwareErrorHandler

All Superinterfaces:
org.xml.sax.ErrorHandler
All Known Implementing Classes:
CountingErrorHandler, MessageAggregatingErrorHandler

public interface MessageAwareErrorHandler
extends org.xml.sax.ErrorHandler


Method Summary
 boolean capturesMessages()
          Does this ErrorHandler implementation capture error messages?
 int getErrorCount()
          Return the number of errors.
 int getFatalErrorCount()
          Return the number of fatal errors.
 java.lang.Object getMessagesAs(java.lang.Class format)
          Get the messages from this ErrorHandler in a particular format.
 int getWarningCount()
          Return the number of warnings.
 boolean hasErrors()
          Does the error handler contain any error messages?
 boolean supportsMessageFormat(java.lang.Class format)
          Does the message support a given format?
 
Methods inherited from interface org.xml.sax.ErrorHandler
error, fatalError, warning
 

Method Detail

hasErrors

boolean hasErrors()
Does the error handler contain any error messages?

Returns:

getWarningCount

int getWarningCount()
Return the number of warnings.

Returns:

getErrorCount

int getErrorCount()
Return the number of errors.

Returns:

getFatalErrorCount

int getFatalErrorCount()
Return the number of fatal errors.

Returns:

capturesMessages

boolean capturesMessages()
Does this ErrorHandler implementation capture error messages?

Returns:

getMessagesAs

java.lang.Object getMessagesAs(java.lang.Class format)
                               throws javax.jbi.messaging.MessagingException
Get the messages from this ErrorHandler in a particular format.

Returns:
Throws:
javax.jbi.messaging.MessagingException

supportsMessageFormat

boolean supportsMessageFormat(java.lang.Class format)
Does the message support a given format?

Parameters:
clazz - The Class of the format for which support is required.
Returns:


Copyright © 2005-2011 FuseSource. All Rights Reserved.