com.thalesgroup.dtkit.util.validator
Class ValidationHandler

java.lang.Object
  extended by com.thalesgroup.dtkit.util.validator.ValidationHandler
All Implemented Interfaces:
Serializable, ErrorHandler

public class ValidationHandler
extends Object
implements ErrorHandler, Serializable

See Also:
Serialized Form

Constructor Summary
ValidationHandler()
           
 
Method Summary
 void error(SAXParseException ex)
          Report a non-fatal error
 void fatalError(SAXParseException ex)
          Report a fatal error
 List<ValidationError> getErrors()
           
 void warning(SAXParseException ex)
          Report a warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationHandler

public ValidationHandler()
Method Detail

error

public void error(SAXParseException ex)
Report a non-fatal error

Specified by:
error in interface ErrorHandler
Parameters:
ex - the error condition

fatalError

public void fatalError(SAXParseException ex)
Report a fatal error

Specified by:
fatalError in interface ErrorHandler
Parameters:
ex - the error condition

warning

public void warning(SAXParseException ex)
Report a warning

Specified by:
warning in interface ErrorHandler
Parameters:
ex - the warning condition

getErrors

public List<ValidationError> getErrors()


Copyright © 2004-2011. All Rights Reserved.