svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libFMap_dalfile / src / org / gvsig / fmap / dal / store / shp / SHPStoreProviderFactory.java @ 37333
History | View | Annotate | Download (1.37 KB)
1 |
package org.gvsig.fmap.dal.store.shp; |
---|---|
2 |
|
3 |
import java.util.List; |
4 |
|
5 |
import org.gvsig.fmap.dal.DataParameters; |
6 |
import org.gvsig.fmap.dal.DataStoreProvider; |
7 |
import org.gvsig.fmap.dal.exception.InitializeException; |
8 |
import org.gvsig.fmap.dal.feature.FeatureStoreProviderFactory; |
9 |
import org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProviderFactory; |
10 |
import org.gvsig.fmap.dal.spi.DataStoreProviderServices; |
11 |
import org.gvsig.tools.dynobject.DynObject; |
12 |
|
13 |
public class SHPStoreProviderFactory extends AbstractFeatureStoreProviderFactory implements FeatureStoreProviderFactory{ |
14 |
|
15 |
protected SHPStoreProviderFactory(String name, String description) { |
16 |
super(name, description);
|
17 |
} |
18 |
|
19 |
public DataStoreProvider createProvider(DataParameters parameters,
|
20 |
DataStoreProviderServices providerServices) |
21 |
throws InitializeException {
|
22 |
return new SHPStoreProvider((SHPStoreParameters) parameters, providerServices); |
23 |
} |
24 |
|
25 |
public DynObject createParameters() {
|
26 |
return new SHPStoreParameters(); |
27 |
} |
28 |
|
29 |
public int allowCreate() { |
30 |
return YES;
|
31 |
} |
32 |
|
33 |
public int allowWrite() { |
34 |
return YES;
|
35 |
} |
36 |
|
37 |
public int allowRead() { |
38 |
return YES;
|
39 |
} |
40 |
|
41 |
public int hasRasterSupport() { |
42 |
return NO;
|
43 |
} |
44 |
|
45 |
public int hasTabularSupport() { |
46 |
return YES;
|
47 |
} |
48 |
|
49 |
public int hasVectorialSupport() { |
50 |
return YES;
|
51 |
} |
52 |
|
53 |
public List getSupportedGeometries() { |
54 |
return null; |
55 |
} |
56 |
|
57 |
public int allowMultipleGeometryTypes() { |
58 |
return NO;
|
59 |
} |
60 |
|
61 |
} |