|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.brics.xmlgraph.validator.SimpleErrorHandler
public class SimpleErrorHandler
Simple validation error handler.
Constructor Summary | |
---|---|
SimpleErrorHandler(PrintStream out)
Constructs a new error handler. |
|
SimpleErrorHandler(PrintStream out,
Origin program_source)
Constructs a new error handler. |
|
SimpleErrorHandler(PrintWriter out)
Constructs a new error handler. |
|
SimpleErrorHandler(PrintWriter out,
Origin program_source)
Constructs a new error handler. |
Method Summary | |
---|---|
boolean |
error(ElementNode n,
Origin origin,
String msg,
String example,
Origin schema)
Called when a validation error is detected. |
int |
getErrors()
Returns number of errors that have been reported. |
void |
setOutput(PrintWriter out)
Sets output print writer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleErrorHandler(PrintStream out)
out
- print stream for error messages (using default character encoding)public SimpleErrorHandler(PrintStream out, Origin program_source)
out
- print stream for error messages (using default character encoding)public SimpleErrorHandler(PrintWriter out)
out
- print writer for error messagespublic SimpleErrorHandler(PrintWriter out, Origin program_source)
out
- print writer for error messagesprogram_source
- program source location, null if not applicableMethod Detail |
---|
public boolean error(ElementNode n, Origin origin, String msg, String example, Origin schema)
ValidationErrorHandler
error
in interface ValidationErrorHandler
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
public int getErrors()
public void setOutput(PrintWriter out)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |