org.geotools.validation
Class DefaultFeatureResults

Object
  extended by DefaultFeatureResults
All Implemented Interfaces:
ValidationResults

public final class DefaultFeatureResults
extends Object
implements ValidationResults

Module:
modules/extension/validation (gt-validation.jar)

Field Summary
 List error
           
 List warning
           
 
Constructor Summary
DefaultFeatureResults()
           
 
Method Summary
 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.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

error

public List error

warning

public 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(SimpleFeature feature,
                  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(SimpleFeature feature,
                    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 © 1996-2010 Geotools. All Rights Reserved.