Package org.openscience.cdk.validate
Class ValidationReport
- java.lang.Object
-
- org.openscience.cdk.validate.ValidationReport
-
-
Constructor Summary
Constructors Constructor Description ValidationReport()
Constructs a new empty ValidationReport.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
getCDKErrorCount()
Returns the number of CDK errors.List<ValidationTest>
getCDKErrors()
Returns an array of ValidationTest indicating CDK problems.int
getCount()
Returns the number of CDK errors.int
getErrorCount()
Returns the number of failed tests.List<ValidationTest>
getErrors()
Returns an array of ValidationTest errors.int
getOKCount()
Returns the number of tests without errors.List<ValidationTest>
getOKs()
Returns an array of ValidationTest which did not find problems.int
getWarningCount()
Returns the number of tests which gave warnings.List<ValidationTest>
getWarnings()
Returns an array of ValidationTest warnings.
-
-
-
Method Detail
-
addReport
public void addReport(ValidationReport report)
Merges the tests with the tests in this ValidationReport.
-
addError
public void addError(ValidationTest test)
Adds a validation test which gives serious errors.
-
addWarning
public void addWarning(ValidationTest test)
Adds a validation test which indicate a possible problem.
-
addOK
public void addOK(ValidationTest test)
Adds a validation test which did not find a problem.
-
addCDKError
public void addCDKError(ValidationTest test)
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
public List<ValidationTest> getErrors()
Returns an array of ValidationTest errors.
-
getWarnings
public List<ValidationTest> getWarnings()
Returns an array of ValidationTest warnings.
-
getOKs
public List<ValidationTest> getOKs()
Returns an array of ValidationTest which did not find problems.
-
getCDKErrors
public List<ValidationTest> getCDKErrors()
Returns an array of ValidationTest indicating CDK problems.
-
-