org.geotools.validation
Class DefaultFeatureResults

java.lang.Object
  extended byorg.geotools.validation.DefaultFeatureResults
All Implemented Interfaces:
ValidationResults

public final class DefaultFeatureResults
extends java.lang.Object
implements ValidationResults


Field Summary
 java.util.List error
           
 java.util.List warning
           
 
Constructor Summary
DefaultFeatureResults()
           
 
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
 

Field Detail

error

public java.util.List error

warning

public java.util.List warning
Constructor Detail

DefaultFeatureResults

public DefaultFeatureResults()
Method Detail

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: 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 invalid
message - 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: 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 error
message - Optional warning message. Use a non null message to provide specific warning information.


Copyright © GeoTools. All Rights Reserved.