org.geotools.validation.attributes
Class SQLValidation

java.lang.Object
  extended by org.geotools.validation.DefaultFeatureValidation
      extended by org.geotools.validation.attributes.SQLValidation
All Implemented Interfaces:
FeatureValidation, Validation

public class SQLValidation
extends DefaultFeatureValidation

PointCoveredByLineValidation purpose.

SQL Validation

Version:
$Id: SQLValidation.java 30662 2008-06-12 21:44:16Z acuster $
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
SQLValidation()
          PointCoveredByLineValidation constructor.
 
Method Summary
 java.lang.String getSql()
          Access lineTypeRef property.
 void setSql(java.lang.String sql)
          Set lineTypeRef to lineTypeRef.
 boolean validate(org.opengis.feature.simple.SimpleFeature feature, org.opengis.feature.simple.SimpleFeatureType type, ValidationResults results)
          SQL Validation
 
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

SQLValidation

public SQLValidation()
PointCoveredByLineValidation constructor.

Super

Method Detail

validate

public boolean validate(org.opengis.feature.simple.SimpleFeature feature,
                        org.opengis.feature.simple.SimpleFeatureType type,
                        ValidationResults results)
SQL Validation

Specified by:
validate in interface FeatureValidation
Overrides:
validate in class DefaultFeatureValidation
Parameters:
feature - Feature to be Validated
type - FeatureTypeInfo schema of feature
results - coallate results information
Returns:
true if the feature is a valid geometry.
See Also:
org.geotools.validation.FeatureValidation#validate(org.geotools.feature.Feature, org.geotools.feature.FeatureType, org.geotools.validation.ValidationResults)

getSql

public java.lang.String getSql()
Access lineTypeRef property.

Returns:
Returns the sql.

setSql

public void setSql(java.lang.String sql)
Set lineTypeRef to lineTypeRef.

Parameters:
sql - The sql to set.


Copyright © 1996-2010 Geotools. All Rights Reserved.