org.geotools.validation.attributes
Class SingleValueValidation

java.lang.Object
  extended byorg.geotools.validation.DefaultFeatureValidation
      extended byorg.geotools.validation.attributes.SingleValueValidation
All Implemented Interfaces:
FeatureValidation, Validation

public class SingleValueValidation
extends DefaultFeatureValidation

SingleValueValidation purpose.

Checks to ensure there is a single value for the feature.

Version:
$Id: SingleValueValidation.java 17704 2006-01-23 00:26:16Z desruisseaux $
Author:
dzwiers, Refractions Research, Inc., $Author: dmzwiers $ (last modification)

Field Summary
 
Fields inherited from interface org.geotools.validation.Validation
ALL, PRIORITY_COMPLEX, PRIORITY_INVOLVED, PRIORITY_SIMPLE, PRIORITY_TRIVIAL
 
Constructor Summary
SingleValueValidation()
          SingleValueValidation constructor.
 
Method Summary
 boolean validate(Feature feature, FeatureType type, ValidationResults results)
          SingleValueValidation test for feature.
 
Methods inherited from class org.geotools.validation.DefaultFeatureValidation
getDefaultLineString, getDescription, getName, getPriority, getTypeRef, getTypeRefs, setDescription, setName, setTypeRef
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleValueValidation

public SingleValueValidation()
SingleValueValidation constructor.

Super

Method Detail

validate

public boolean validate(Feature feature,
                        FeatureType type,
                        ValidationResults results)
SingleValueValidation test for feature.

Checks to ensure there is a single value for the feature.

Specified by:
validate in interface FeatureValidation
Overrides:
validate in class DefaultFeatureValidation
Parameters:
feature - The Feature to be validated
type - The FeatureType of the feature
results - The storage for error messages.
Returns:
true if the feature is a valid geometry.
See Also:
FeatureValidation.validate(org.geotools.feature.Feature, org.geotools.feature.FeatureType, org.geotools.validation.ValidationResults)


Copyright © GeoTools. All Rights Reserved.