|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.reasoner.StandardValidityReport
public class StandardValidityReport
Default implementation of ValidityReport which simply stores a list of precomputed Report records.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.hp.hpl.jena.reasoner.ValidityReport |
|---|
ValidityReport.Report |
| Constructor Summary | |
|---|---|
StandardValidityReport()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StandardValidityReport()
| Method Detail |
|---|
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 problem
public 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 ValidityReport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||