Package org.openscience.cdk.validate
Class ValidationReport
java.lang.Object
org.openscience.cdk.validate.ValidationReport
A report on validation of chemical semantics.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCDKError(ValidationTest test) Adds a CDK problem.voidaddError(ValidationTest test) Adds a validation test which gives serious errors.voidaddOK(ValidationTest test) Adds a validation test which did not find a problem.voidaddReport(ValidationReport report) Merges the tests with the tests in this ValidationReport.voidaddWarning(ValidationTest test) Adds a validation test which indicate a possible problem.intReturns the number of CDK errors.Returns an array of ValidationTest indicating CDK problems.intgetCount()Returns the number of CDK errors.intReturns the number of failed tests.Returns an array of ValidationTest errors.intReturns the number of tests without errors.getOKs()Returns an array of ValidationTest which did not find problems.intReturns the number of tests which gave warnings.Returns an array of ValidationTest warnings.
-
Constructor Details
-
ValidationReport
public ValidationReport()Constructs a new empty ValidationReport.
-
-
Method Details
-
addReport
Merges the tests with the tests in this ValidationReport. -
addError
Adds a validation test which gives serious errors. -
addWarning
Adds a validation test which indicate a possible problem. -
addOK
Adds a validation test which did not find a problem. -
addCDKError
Adds a CDK problem. -
getErrorCount
public int getErrorCount()Returns the number of failed tests. -
getWarningCount
public int getWarningCount()Returns the number of tests which gave warnings. -
getOKCount
public int getOKCount()Returns the number of tests without errors. -
getCDKErrorCount
public int getCDKErrorCount()Returns the number of CDK errors. -
getCount
public int getCount()Returns the number of CDK errors. -
getErrors
Returns an array of ValidationTest errors. -
getWarnings
Returns an array of ValidationTest warnings. -
getOKs
Returns an array of ValidationTest which did not find problems. -
getCDKErrors
Returns an array of ValidationTest indicating CDK problems.
-