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;
09: * version 2.1 of the License.
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: package org.geotools.feature;
17:
18: import java.net.URI;
19: import java.util.Collection;
20:
21: /**
22: * A basic implementation of FeatureType.
23: *
24: * @author Ian Schneider
25: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/main/src/main/java/org/geotools/feature/SimpleFeatureType.java $
26: * @version $Id: SimpleFeatureType.java 20651 2006-07-21 07:51:54Z jgarnett $
27: */
28: public class SimpleFeatureType extends DefaultFeatureType {
29:
30: /**
31: * @deprecated use SimpleFeatureType(String,URI,Collection,Collection,GeometryAttributeType)
32: * @param typeName
33: * @param namespace
34: * @param types
35: * @param superTypes
36: * @param defaultGeom
37: * @throws SchemaException
38: * @throws NullPointerException
39: */
40: public SimpleFeatureType(String typeName, String namespace,
41: Collection types, Collection super Types,
42: GeometryAttributeType defaultGeom) throws SchemaException,
43: NullPointerException {
44: super (typeName, namespace, types, super Types, defaultGeom);
45: // TODO check for simplicity here;
46: }
47:
48: /**
49: * Constructs a new SimpleFeatureType.
50: *
51: * <p>
52: * Attributes from the superTypes will be copied to the list of attributes
53: * for this feature type.
54: *
55: * @param typeName The name to give this FeatureType.
56: * @param namespace The namespace of the new FeatureType.
57: * @param types The attributeTypes to use for validation.
58: * @param superTypes The ancestors of this FeatureType.
59: * @param defaultGeom The attributeType to set as the defaultGeometry.
60: *
61: * @throws SchemaException For problems making the FeatureType.
62: * @throws NullPointerException If typeName is null.
63: */
64: public SimpleFeatureType(String typeName, URI namespace,
65: Collection types, Collection super Types,
66: GeometryAttributeType defaultGeom)
67: throws NullPointerException {
68: super (typeName, namespace, types, super Types, defaultGeom);
69: // TODO check for simplicity here;
70: }
71: }
|