public class DefaultValidationReportBuilder extends Object implements ValidationReportBuilder
ValidationReportBuilder
.Constructor and Description |
---|
DefaultValidationReportBuilder() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.