org.apache.camel.processor.validation
Class DefaultValidationErrorHandler

java.lang.Object
  extended by org.apache.camel.processor.validation.DefaultValidationErrorHandler
All Implemented Interfaces:
ValidatorErrorHandler, ErrorHandler

public class DefaultValidationErrorHandler
extends Object
implements ValidatorErrorHandler

A default error handler which just stores all the errors so they can be reported or transformed.

Version:
$Revision: 15640 $

Constructor Summary
DefaultValidationErrorHandler()
           
 
Method Summary
 void error(SAXParseException e)
           
 void fatalError(SAXParseException e)
           
 void handleErrors(Exchange exchange, Object schema)
           
 void handleErrors(Exchange exchange, Schema schema, Result result)
          Process any errors which may have occurred during validation
 boolean isValid()
           
 void reset()
          Resets any state within this error handler
 void warning(SAXParseException e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultValidationErrorHandler

public DefaultValidationErrorHandler()
Method Detail

warning

public void warning(SAXParseException e)
             throws SAXException
Specified by:
warning in interface ErrorHandler
Throws:
SAXException

error

public void error(SAXParseException e)
           throws SAXException
Specified by:
error in interface ErrorHandler
Throws:
SAXException

fatalError

public void fatalError(SAXParseException e)
                throws SAXException
Specified by:
fatalError in interface ErrorHandler
Throws:
SAXException

reset

public void reset()
Description copied from interface: ValidatorErrorHandler
Resets any state within this error handler

Specified by:
reset in interface ValidatorErrorHandler

isValid

public boolean isValid()

handleErrors

public void handleErrors(Exchange exchange,
                         Schema schema,
                         Result result)
                  throws ValidationException
Description copied from interface: ValidatorErrorHandler
Process any errors which may have occurred during validation

Specified by:
handleErrors in interface ValidatorErrorHandler
Parameters:
exchange - the exchange
schema - the schema
result - the result
Throws:
ValidationException - is thrown in case of validation errors

handleErrors

public void handleErrors(Exchange exchange,
                         Object schema)
                  throws ValidationException
Throws:
ValidationException


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.