public interface IntegrityValidation extends Validation
Each ValidationPlugIn is very specific in nature: it performs one test extermly well. This simplifies design decisions, documenation configuration and use.
Following the lead the excelent design work in the JUnit testing framework validation results are collected by a ValidationResults object. This interface for the ValidationResults object also allows it to collect warning information.
The PlugIn is also required to supply some metadata to aid in its deployment, scripting, logging and execution and error recovery:
|Modifier and Type||Method and Description|
Used to check features against this validation rule.
boolean validate(Map layers, ReferencedEnvelope envelope, ValidationResults results) throws Exception
The layers Map is still under developement, current thinking involves storing a SimpleFeatureSource of the correct typeName requested by getTypeNames(), using the current geotools2 Transaction as the opperation being validated.
We may need to extend this information to provide:
layers- Map of SimpleFeatureSource by "dataStoreID:typeName"
envelope- The bounding box that encloses the unvalidated data
results- Used to coallate results information
trueif all the features pass this test.
Copyright © 1996–2021 Geotools. All rights reserved.