|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.jena.reasoner.StandardValidityReport
Default implementation of ValidityReport which simply stores a list of precomputed Report records.
Nested Class Summary |
Nested classes inherited from class com.hp.hpl.jena.reasoner.ValidityReport |
ValidityReport.Report |
Constructor Summary | |
StandardValidityReport()
|
Method Summary | |
void |
add(boolean error,
java.lang.String type,
java.lang.String description)
Add a new error report |
void |
add(ValidityReport.Report report)
Add a new error report |
java.util.Iterator |
getReports()
Return an iterator over the separate ValidityReport.Report records. |
boolean |
isValid()
Return true if there are no problems reported by the validation |
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, java.lang.String type, java.lang.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(ValidityReport.Report report)
report
- a ValidityReport.Report to add, can be nullpublic boolean isValid()
isValid
in interface ValidityReport
public int size()
public java.util.Iterator getReports()
getReports
in interface ValidityReport
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |