public class StandardValidityReport extends Object implements ValidityReport
ValidityReport.Report| Constructor and Description |
|---|
StandardValidityReport() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(boolean error,
String type,
String description)
Add a new error report
|
void |
add(boolean error,
String type,
String description,
Object extension)
Add a new error report
|
void |
add(ValidityReport.Report report)
Add a new error report
|
Iterator<ValidityReport.Report> |
getReports()
Return an iterator over the separate ValidityReport.Report records.
|
boolean |
isClean()
Returns true if the model is both valid (logically consistent) and no
warnings were generated.
|
boolean |
isValid()
Returns true if no logical inconsistencies were detected (in which case
there will be at least one error Report included).
|
int |
size()
Return a count of the number of warning or error reports
generated by the validation.
|
public void add(boolean error,
String type,
String description)
error - true if the report is an error, false if it is just a warningtype - a string giving a reasoner-dependent classification for the reportdescription - a textual description of the problempublic void add(boolean error,
String type,
String description,
Object extension)
error - true if the report is an error, false if it is just a warningtype - a string giving a reasoner-dependent classification for the reportdescription - a textual description of the problemextension - Optional argument with extension data about the reported errorpublic void add(ValidityReport.Report report)
report - a ValidityReport.Report to add, can be nullpublic boolean isValid()
isValid in interface ValidityReportpublic boolean isClean()
isClean in interface ValidityReportpublic int size()
public Iterator<ValidityReport.Report> getReports()
getReports in interface ValidityReportLicenced under the Apache License, Version 2.0