Package org.openscience.cdk.validate
Class ValidationReport
java.lang.Object
org.openscience.cdk.validate.ValidationReport
A report on validation of chemical semantics.
- Source code:
- main
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCDKError
(ValidationTest test) Adds a CDK problem.void
addError
(ValidationTest test) Adds a validation test which gives serious errors.void
addOK
(ValidationTest test) Adds a validation test which did not find a problem.void
addReport
(ValidationReport report) Merges the tests with the tests in this ValidationReport.void
addWarning
(ValidationTest test) Adds a validation test which indicate a possible problem.int
Returns the number of CDK errors.Returns an array of ValidationTest indicating CDK problems.int
getCount()
Returns the number of CDK errors.int
Returns the number of failed tests.Returns an array of ValidationTest errors.int
Returns the number of tests without errors.getOKs()
Returns an array of ValidationTest which did not find problems.int
Returns 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.
-