org.geotools.validation
Class DefaultIntegrityValidation

java.lang.Object
  extended byorg.geotools.validation.DefaultIntegrityValidation
All Implemented Interfaces:
IntegrityValidation, Validation
Direct Known Subclasses:
AddressGapValidation, AddressOverlapValidation, AngleSizeValidation, LineAbstractValidation, LineCoveredByFeatureLineValidation, LineLineAbstractValidation, LinePointAbstractValidation, LinePolygonAbstractValidation, OrphanNodeValidation, PointLineAbstractValidation, PointPolygonAbstractValidation, PolygonCoveredByFeaturePolygonValidation, PolygonLineAbstractValidation, PolygonPointAbstractValidation, PolygonPolygonAbstractValidation, RelationIntegrity, StarNodeValidation, UniqueFIDValidation, UniquityValidation

public class DefaultIntegrityValidation
extends java.lang.Object
implements IntegrityValidation

Tests to see if a Feature ...

This class is ment to be copied as a starting point for implementing IntegrityValidation. Chances are you are not working against a single typeName when performing an integrity test.

Version:
$Id: DefaultIntegrityValidation.java 17704 2006-01-23 00:26:16Z desruisseaux $
Author:
Jody Garnett, 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
DefaultIntegrityValidation()
          No argument constructor, required by the Java Bean Specification.
 
Method Summary
 java.lang.String getDescription()
          Override getDescription.
 java.lang.String getName()
          Override getName.
 int getPriority()
          The priority level used to schedule this Validation.
 java.lang.String[] getTypeRefs()
          Implementation of getTypeNames.
 void setDescription(java.lang.String description)
          Override setDescription.
 void setName(java.lang.String name)
          Override setName.
 boolean validate(java.util.Map layers, com.vividsolutions.jts.geom.Envelope envelope, ValidationResults results)
          Check FeatureType for ...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIntegrityValidation

public DefaultIntegrityValidation()
No argument constructor, required by the Java Bean Specification.

Method Detail

setName

public final void setName(java.lang.String name)
Override setName.

Sets the name of this validation.

Specified by:
setName in interface Validation
Parameters:
name - The name of this validation.
See Also:
Validation.setName(java.lang.String)

getName

public final java.lang.String getName()
Override getName.

Returns the name of this particular validation.

Specified by:
getName in interface Validation
Returns:
The name of this particular validation.
See Also:
Validation.getName()

setDescription

public final void setDescription(java.lang.String description)
Override setDescription.

Sets the description of this validation.

Specified by:
setDescription in interface Validation
Parameters:
description - The description of the validation.
See Also:
Validation.setDescription(java.lang.String)

getDescription

public final java.lang.String getDescription()
Override getDescription.

Returns the description of this validation as a string.

Specified by:
getDescription in interface Validation
Returns:
The description of this validation.
See Also:
Validation.getDescription()

getPriority

public int getPriority()
The priority level used to schedule this Validation.

Specified by:
getPriority in interface Validation
Returns:
PRORITY_SIMPLE
See Also:
Validation.getPriority()

getTypeRefs

public java.lang.String[] getTypeRefs()
Implementation of getTypeNames.

Specified by:
getTypeRefs in interface Validation
Returns:
Array of typeNames, or empty array for all, null for disabled
See Also:
org.geotools.validation.Validation#getTypeNames()

validate

public boolean validate(java.util.Map layers,
                        com.vividsolutions.jts.geom.Envelope envelope,
                        ValidationResults results)
                 throws java.lang.Exception
Check FeatureType for ...

Detailed description...

Specified by:
validate in interface IntegrityValidation
Parameters:
layers - Map of FeatureSource by "dataStoreID:typeName"
envelope - The bounding box that encloses the unvalidated data
results - Used to coallate results information
Returns:
true if all the features pass this test.
Throws:
java.lang.Exception - DOCUMENT ME!


Copyright © GeoTools. All Rights Reserved.