| org.geotools.validation.ValidationResults
All known Subclasses: org.geotools.validation.RoadValidationResults, org.geotools.validation.RoadNetworkValidationResults, org.geotools.validation.DefaultFeatureResults, org.geotools.validation.relate.TempFeatureResults,
ValidationResults | public interface ValidationResults (Code) | | Collates results of validation operations.
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.
author: Jody Garnett, Refractions Research, Inc |
Method Summary | |
public void | error(Feature feature, String message) Returns a validation error on against the provided feature, An optional
error message may be provided. | public void | setValidation(Validation validation) | public void | warning(Feature feature, String message) Returns a validation warning against the provided feature. |
error | public void error(Feature feature, String message)(Code) | | Returns a validation error on against the provided feature, An optional
error message may be provided. The validating web feature server will:
-
Collate all errors for transaction result
-
Log all errors
-
Transaction may be canceled or have partial success depending on
transaction request
Please note:
The FeatureResults object has been provided with a Validation object
allowing it access to the user's name for the test, and the users
decription of the test. Use the message information only to provide
specific failure information.
Parameters: feature - Feature found invalid Parameters: message - Optional error message. Use a non null message to providespecific failure information. |
setValidation | public void setValidation(Validation validation)(Code) | | Called to configure ValidationResults according to the provided
FeatureValidation
Parameters: validation - Provided FeatureValidation |
warning | public void warning(Feature feature, String message)(Code) | | Returns a validation warning against the provided feature. An optional
warning message may be provided The validating web feature server
will:
-
Collate all warnings for a comment in the transaction result
-
Log all warnings
The FeatureResults object has been provided with a Validation object
allowing it access to the user's name for the test, and the users
decription of the test. Use the message information only to provide
specific failure information.
Parameters: feature - Feature found to be in error Parameters: message - Optional warning message. Use a non null message toprovide specific warning information. |
|
|