dk.brics.xmlgraph.validator
Interface ValidationErrorHandler
- All Known Implementing Classes:
- SimpleErrorHandler
public interface ValidationErrorHandler
Validation error handler interface.
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 contentsorigin
- origin of current node, only relevant if processing root contentsmsg
- brief description of the errorexample
- example of invalida data, null if not applicableschema
- origin of the schema rule being violated
- Returns:
- true iff validation should continue
Copyright © 2005-2010 Anders Møller.