org.geotools.validation.attributes
Class SQLValidation

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

public class SQLValidation
extends DefaultFeatureValidation

PointCoveredByLineValidation purpose.

SQL Validation

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
SQLValidation()
          PointCoveredByLineValidation constructor.
 
Method Summary
 String getSql()
          Access lineTypeRef property.
 void setSql(String sql)
          Set lineTypeRef to lineTypeRef.
 boolean validate(SimpleFeature feature, SimpleFeatureType type, ValidationResults results)
          SQL Validation
 
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

SQLValidation

public SQLValidation()
PointCoveredByLineValidation constructor.

Super

Method Detail

validate

public boolean validate(SimpleFeature feature,
                        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 String getSql()
Access lineTypeRef property.

Returns:
Returns the sql.

setSql

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

Parameters:
sql - The sql to set.


Copyright © 1996-2014 Geotools. All Rights Reserved.