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:
Capabilities:
ALL, PRIORITY_COMPLEX, PRIORITY_INVOLVED, PRIORITY_SIMPLE, PRIORITY_TRIVIAL
Modifier and Type | Method and Description |
---|---|
boolean |
validate(Map layers,
ReferencedEnvelope envelope,
ValidationResults results)
Used to check features against this validation rule.
|
getDescription, getName, getPriority, getTypeRefs, setDescription, setName
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 dataresults
- Used to coallate results informationtrue
if all the features pass this test.Exception
Copyright © 1996–2019 Geotools. All rights reserved.