01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2003-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: * Created on July 17, 2003, 9:25 AM
17: */
18: package org.geotools.feature;
19:
20: /**
21: * Concrete extension to FeatureCollections to create
22: * DefaultFeatureCollections.
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/DefaultFeatureCollections.java $
26: */
27: public class DefaultFeatureCollections extends FeatureCollections {
28: /**
29: * Creates a new instance of DefaultFeatureCollections
30: */
31: public DefaultFeatureCollections() {
32: }
33:
34: /**
35: * Creates a new DefaultFeatureCollection.
36: *
37: * @return A new, empty DefaultFeatureCollection.
38: */
39: protected FeatureCollection createCollection() {
40: return new DefaultFeatureCollection(null, null);
41: }
42:
43: protected FeatureCollection createCollection(String id) {
44: return new DefaultFeatureCollection(id, null);
45: }
46:
47: protected FeatureCollection createCollection(String id,
48: FeatureType ft) {
49: return new DefaultFeatureCollection(id, ft);
50: }
51: }
|