org.geotools.validation.network
Class OrphanNodeValidation

Object
  extended by DefaultIntegrityValidation
      extended by OrphanNodeValidation
All Implemented Interfaces:
IntegrityValidation, Validation

public class OrphanNodeValidation
extends DefaultIntegrityValidation

OrphanNodeValidation purpose.

Builds a network, and looks for orphaned nodes.

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

Field Summary
 
Fields inherited from interface Validation
ALL, PRIORITY_COMPLEX, PRIORITY_INVOLVED, PRIORITY_SIMPLE, PRIORITY_TRIVIAL
 
Constructor Summary
OrphanNodeValidation()
          StarNodeValidation constructor.
 
Method Summary
 String getTypeName()
          Access typeName property.
 String[] getTypeRefs()
          Implementation of getTypeRefs.
 void setTypeName(String typeName)
          Set typeName to typeName.
 boolean validate(Map layers, ReferencedEnvelope envelope, ValidationResults results)
          Check FeatureType for ...
 
Methods inherited from class DefaultIntegrityValidation
getDescription, getName, getPriority, setDescription, setName
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrphanNodeValidation

public OrphanNodeValidation()
StarNodeValidation constructor.

Description

Method Detail

getTypeRefs

public String[] getTypeRefs()
Implementation of getTypeRefs.

Specified by:
getTypeRefs in interface Validation
Overrides:
getTypeRefs in class DefaultIntegrityValidation
Returns:
Array of typeNames, or empty array for all, null for disabled
See Also:
Validation.getTypeRefs()

validate

public boolean validate(Map layers,
                        ReferencedEnvelope envelope,
                        ValidationResults results)
                 throws Exception
Check FeatureType for ...

Detailed description...

Specified by:
validate in interface IntegrityValidation
Overrides:
validate in class DefaultIntegrityValidation
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:
Exception - DOCUMENT ME!

getTypeName

public String getTypeName()
Access typeName property.

Returns:
Returns the typeName.

setTypeName

public void setTypeName(String typeName)
Set typeName to typeName.

Parameters:
typeName - The typeName to set.


Copyright © 1996-2009 Geotools. All Rights Reserved.