org.geotools.validation
Class DefaultFeatureResults
java.lang.Object
org.geotools.validation.DefaultFeatureResults
- All Implemented Interfaces:
- ValidationResults
- public final class DefaultFeatureResults
- extends java.lang.Object
- implements ValidationResults
Method Summary |
void |
error(Feature feature,
java.lang.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(Feature feature,
java.lang.String message)
Returns a validation warning against the provided feature. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
error
public java.util.List error
warning
public java.util.List warning
DefaultFeatureResults
public DefaultFeatureResults()
setValidation
public void setValidation(Validation validation)
- Description copied from interface:
ValidationResults
- Called to configure ValidationResults according to the provided
FeatureValidation
- Specified by:
setValidation
in interface ValidationResults
- Parameters:
validation
- Provided FeatureValidation
error
public void error(Feature feature,
java.lang.String message)
- Description copied from interface:
ValidationResults
- 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.
- Specified by:
error
in interface ValidationResults
- Parameters:
feature
- Feature found invalidmessage
- Optional error message. Use a non null message to provide
specific failure information.
warning
public void warning(Feature feature,
java.lang.String message)
- Description copied from interface:
ValidationResults
- 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.
- Specified by:
warning
in interface ValidationResults
- Parameters:
feature
- Feature found to be in errormessage
- Optional warning message. Use a non null message to
provide specific warning information.
Copyright © GeoTools. All Rights Reserved.