public class PrintSaxMessager extends Object implements SaxMessager
maxRepeat
parameter.SaxMessager.Level
Constructor and Description |
---|
PrintSaxMessager(PrintStream out,
boolean debug,
int maxRepeat)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
reportMessage(SaxMessager.Level level,
VotLintCode code,
String msg,
Locator locator)
Reports a message.
|
public PrintSaxMessager(PrintStream out, boolean debug, int maxRepeat)
out
- output stream to which messages will be writtendebug
- if true, a stack trace will be output with each
log messagemaxRepeat
- maximum number of identical error messages
which will be loggedpublic void reportMessage(SaxMessager.Level level, VotLintCode code, String msg, Locator locator)
SaxMessager
reportMessage
in interface SaxMessager
level
- severity level of the message, not nullcode
- message identifiermsg
- message textlocator
- location in the XML document that provoked the message,
or null if unknown/inapplicableCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.