|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.any23.validator.DefaultValidationReportBuilder
public class DefaultValidationReportBuilder
Default implementation of ValidationReportBuilder
.
Constructor Summary | |
---|---|
DefaultValidationReportBuilder()
|
Method Summary | |
---|---|
ValidationReport |
getReport()
|
void |
reportFixError(Fix f,
Exception e,
String msg)
Reports an error occurred while executing a Fix . |
void |
reportIssue(ValidationReport.IssueLevel issueLevel,
String message)
Reports a detected issue. |
void |
reportIssue(ValidationReport.IssueLevel issueLevel,
String message,
Node n)
Reports an issue detected on a specified node. |
void |
reportRuleError(Rule r,
Exception e,
String msg)
Reports an error occurred while executing a Rule . |
String |
toString()
|
void |
traceRuleActivation(Rule r)
Traces that a rule has been applied. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultValidationReportBuilder()
Method Detail |
---|
public ValidationReport getReport()
getReport
in interface ValidationReportBuilder
public void reportIssue(ValidationReport.IssueLevel issueLevel, String message, Node n)
ValidationReportBuilder
reportIssue
in interface ValidationReportBuilder
issueLevel
- issue level classifier.message
- human readable message connected to the issue.n
- the node affected by the issue.public void reportIssue(ValidationReport.IssueLevel issueLevel, String message)
ValidationReportBuilder
reportIssue
in interface ValidationReportBuilder
issueLevel
- issue level classifier.message
- human readable message connected to the issue.public void traceRuleActivation(Rule r)
ValidationReportBuilder
traceRuleActivation
in interface ValidationReportBuilder
r
- activated rule.public void reportRuleError(Rule r, Exception e, String msg)
ValidationReportBuilder
Rule
.
reportRuleError
in interface ValidationReportBuilder
r
- rule originating the error.e
- exception raised.msg
- human readable message.public void reportFixError(Fix f, Exception e, String msg)
ValidationReportBuilder
Fix
.
reportFixError
in interface ValidationReportBuilder
f
- fix originating the error.e
- exception raised.msg
- human readable message.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |