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.spatial;
19:
20: import org.geotools.validation.DefaultIntegrityValidation;
21:
22: /**
23: * PointCoveredByLineValidation purpose.
24: *
25: * <p>
26: * Basic typeref functionality for a line validation.
27: * </p>
28: *
29: * @author dzwiers, Refractions Research, Inc.
30: * @author $Author: dmzwiers $ (last modification)
31: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/extension/validation/src/main/java/org/geotools/validation/spatial/LineAbstractValidation.java $
32: * @version $Id: LineAbstractValidation.java 20884 2006-08-07 14:10:46Z jgarnett $
33: */
34: public abstract class LineAbstractValidation extends
35: DefaultIntegrityValidation {
36: private String lineTypeRef;
37:
38: /**
39: * PointCoveredByLineValidation constructor.
40: *
41: * <p>
42: * Super
43: * </p>
44: */
45: public LineAbstractValidation() {
46: super ();
47: }
48:
49: /**
50: * Implementation of getTypeNames. Should be called by sub-classes is being
51: * overwritten.
52: *
53: * @return Array of typeNames, or empty array for all, null for disabled
54: *
55: * @see org.geotools.validation.Validation#getTypeNames()
56: */
57: public String[] getTypeRefs() {
58: if (lineTypeRef == null) {
59: return null;
60: }
61:
62: return new String[] { lineTypeRef };
63: }
64:
65: /**
66: * Access lineTypeRef property.
67: *
68: * @return Returns the lineTypeRef.
69: */
70: public final String getLineTypeRef() {
71: return lineTypeRef;
72: }
73:
74: /**
75: * Set lineTypeRef to lineTypeRef.
76: *
77: * @param lineTypeRef The lineTypeRef to set.
78: */
79: public final void setLineTypeRef(String lineTypeRef) {
80: this.lineTypeRef = lineTypeRef;
81: }
82: }
|