01: package org.geotools.feature.iso.simple;
02:
03: import java.util.Collections;
04:
05: import org.geotools.feature.iso.FeatureCollectionImpl;
06: import org.opengis.feature.simple.SimpleFeatureCollection;
07: import org.opengis.feature.simple.SimpleFeatureCollectionType;
08: import org.opengis.feature.type.AttributeDescriptor;
09: import org.opengis.feature.type.FeatureType;
10:
11: public class SimpleFeatureCollectionImpl extends FeatureCollectionImpl
12: implements SimpleFeatureCollection {
13:
14: public SimpleFeatureCollectionImpl(AttributeDescriptor descriptor,
15: String id) {
16: super (Collections.EMPTY_LIST, descriptor, id);
17: }
18:
19: public SimpleFeatureCollectionImpl(
20: SimpleFeatureCollectionType type, String id) {
21: super (Collections.EMPTY_LIST, type, id);
22: }
23:
24: public FeatureType getMemberType() {
25: return (FeatureType) memberTypes().iterator().next();
26: }
27:
28: public SimpleFeatureCollectionType getFeatureCollectionType() {
29: throw new UnsupportedOperationException("not implemented yet");
30: }
31:
32: }
|