| java.lang.Object com.hp.hpl.jena.reasoner.StandardValidityReport
StandardValidityReport | public class StandardValidityReport implements ValidityReport(Code) | | Default implementation of ValidityReport which simply stores a list
of precomputed Report records.
author: Dave Reynolds version: $Revision: 1.13 $ on $Date: 2008/01/02 12:07:00 $ |
Method Summary | |
public void | add(boolean error, String type, String description) | public void | add(boolean error, String type, String description, Object extension) | public void | add(ValidityReport.Report report) | public Iterator | getReports() Return an iterator over the separate ValidityReport.Report records. | public boolean | isClean() Returns true if the model is both valid (logically consistent) and no
warnings were generated. | public boolean | isValid() Returns true if no logical inconsistencies were detected (in which case
there will be at least one error Report included). | public int | size() Return a count of the number of warning or error reports
generated by the validation. |
isError | protected boolean isError(Code) | | Flag to indicate if there are any error reports so far
|
reports | protected List reports(Code) | | The total set of error reports
|
add | public void add(boolean error, String type, String description)(Code) | | Add a new error report
Parameters: error - true if the report is an error, false if it is just a warning Parameters: type - a string giving a reasoner-dependent classification for the report Parameters: description - a textual description of the problem |
add | public void add(boolean error, String type, String description, Object extension)(Code) | | Add a new error report
Parameters: error - true if the report is an error, false if it is just a warning Parameters: type - a string giving a reasoner-dependent classification for the report Parameters: description - a textual description of the problem Parameters: extension - Optional argument with extension data about the reported error |
add | public void add(ValidityReport.Report report)(Code) | | Add a new error report
Parameters: report - a ValidityReport.Report to add, can be null |
getReports | public Iterator getReports()(Code) | | Return an iterator over the separate ValidityReport.Report records.
|
isClean | public boolean isClean()(Code) | | Returns true if the model is both valid (logically consistent) and no
warnings were generated.
|
isValid | public boolean isValid()(Code) | | Returns true if no logical inconsistencies were detected (in which case
there will be at least one error Report included). Warnings may still
be present. As of Jena 2.2 we regard classes which can't be instantiated
as warnings rather than errors.
|
size | public int size()(Code) | | Return a count of the number of warning or error reports
generated by the validation.
|
|
|