dk.brics.xmlgraph.validator
Interface ValidationErrorHandler

All Known Implementing Classes:
SimpleErrorHandler

public interface ValidationErrorHandler

Validation error handler interface.


Method Summary
 boolean error(ElementNode n, Origin origin, String msg, String example, Origin schema)
          Called when a validation error is detected.
 

Method Detail

error

boolean error(ElementNode n,
              Origin origin,
              String msg,
              String example,
              Origin schema)
Called when a validation error is detected.

Parameters:
n - current node, null if processing root contents
origin - origin of current node, only relevant if processing root contents
msg - brief description of the error
example - example of invalida data, null if not applicable
schema - origin of the schema rule being violated
Returns:
true iff validation should continue


Copyright © 2005-2010 Anders Møller.