01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2004-2006, Geotools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2.1 of the License, or (at your option) any later version.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: * Created on Jan 24, 2004
17: */
18: package org.geotools.validation.attributes;
19:
20: import org.geotools.feature.Feature;
21: import org.geotools.feature.FeatureType;
22: import org.geotools.validation.DefaultFeatureValidation;
23: import org.geotools.validation.ValidationResults;
24:
25: /**
26: * PointCoveredByLineValidation purpose.
27: *
28: * <p>
29: * SQL Validation
30: * </p>
31: *
32: * @author dzwiers, Refractions Research, Inc.
33: * @author $Author: dmzwiers $ (last modification)
34: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/extension/validation/src/main/java/org/geotools/validation/attributes/SQLValidation.java $
35: * @version $Id: SQLValidation.java 22266 2006-10-19 11:30:55Z acuster $
36: */
37: public class SQLValidation extends DefaultFeatureValidation {
38: private String sql;
39:
40: /**
41: * PointCoveredByLineValidation constructor.
42: *
43: * <p>
44: * Super
45: * </p>
46: */
47: public SQLValidation() {
48: super ();
49: }
50:
51: /**
52: * SQL Validation
53: *
54: * @param feature Feature to be Validated
55: * @param type FeatureTypeInfo schema of feature
56: * @param results coallate results information
57: *
58: *
59: * @see org.geotools.validation.FeatureValidation#validate(org.geotools.feature.Feature,
60: * org.geotools.feature.FeatureType,
61: * org.geotools.validation.ValidationResults)
62: */
63: public boolean validate(Feature feature, FeatureType type,
64: ValidationResults results) {
65: return false;
66: }
67:
68: /**
69: * Access lineTypeRef property.
70: *
71: * @return Returns the sql.
72: */
73: public String getSql() {
74: return sql;
75: }
76:
77: /**
78: * Set lineTypeRef to lineTypeRef.
79: *
80: * @param sql The sql to set.
81: */
82: public void setSql(String sql) {
83: this.sql = sql;
84: }
85: }
|