public interface ValidationResults
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.
Modifier and Type | Method and Description |
---|---|
void |
error(SimpleFeature feature,
String message)
Returns a validation error on against the provided feature, An optional error message may be
provided.
|
void |
setValidation(Validation validation)
Called to configure ValidationResults according to the provided FeatureValidation
|
void |
warning(SimpleFeature feature,
String message)
Returns a validation warning against the provided feature.
|
void setValidation(Validation validation)
validation
- Provided FeatureValidationvoid error(SimpleFeature feature, String message)
feature
- Feature found invalidmessage
- Optional error message. Use a non null message to provide specific failure
information.void warning(SimpleFeature feature, String message)
feature
- Feature found to be in errormessage
- Optional warning message. Use a non null message to provide specific warning
information.Copyright © 1996–2019 Geotools. All rights reserved.