org.geotools.validation.spatial
Class PolygonNoGapsValidation

Object
  extended by DefaultFeatureValidation
      extended by PolygonNoGapsValidation
All Implemented Interfaces:
FeatureValidation, Validation

public class PolygonNoGapsValidation
extends DefaultFeatureValidation

PolygonNoGapsValidation purpose.

Ensures Polygon does not have gaps.

Author:
dzwiers, Refractions Research, Inc., $Author: dmzwiers $ (last modification)

Field Summary
 
Fields inherited from interface Validation
ALL, PRIORITY_COMPLEX, PRIORITY_INVOLVED, PRIORITY_SIMPLE, PRIORITY_TRIVIAL
 
Constructor Summary
PolygonNoGapsValidation()
          PolygonNoGapsValidation constructor.
 
Method Summary
 boolean validate(SimpleFeature feature, SimpleFeatureType type, ValidationResults results)
          Ensure Polygon does not have gaps.
 
Methods inherited from class DefaultFeatureValidation
getDefaultLineString, getDescription, getName, getPriority, getTypeRef, getTypeRefs, setDescription, setName, setTypeRef
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolygonNoGapsValidation

public PolygonNoGapsValidation()
PolygonNoGapsValidation constructor.

Description

Method Detail

validate

public boolean validate(SimpleFeature feature,
                        SimpleFeatureType type,
                        ValidationResults results)
Ensure Polygon does not have gaps.

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 - storage for the error and warning messages
Returns:
True if no features intersect. If they do then the validation failed.
Throws:
Exception - DOCUMENT ME!
See Also:
org.geotools.validation.IntegrityValidation#validate(java.util.Map, com.vividsolutions.jts.geom.Envelope, org.geotools.validation.ValidationResults)


Copyright © 1996-2014 Geotools. All Rights Reserved.