root / tags / v2_0_0_Build_2051 / libraries / libFMap_dalfile / src / org / gvsig / fmap / dal / store / dgn / DGNStoreProviderFactory.java @ 38736
History | View | Annotate | Download (1.31 KB)
1 | 36208 | fdiaz | package org.gvsig.fmap.dal.store.dgn; |
---|---|---|---|
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 | 37333 | fdiaz | import org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProviderFactory; |
10 | 36208 | fdiaz | import org.gvsig.fmap.dal.spi.DataStoreProviderServices; |
11 | import org.gvsig.tools.dynobject.DynObject; |
||
12 | |||
13 | 37333 | fdiaz | public class DGNStoreProviderFactory extends AbstractFeatureStoreProviderFactory implements FeatureStoreProviderFactory{ |
14 | 36208 | fdiaz | |
15 | protected DGNStoreProviderFactory(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 DGNStoreProvider((DGNStoreParameters) parameters, providerServices); |
||
23 | } |
||
24 | |||
25 | public DynObject createParameters() {
|
||
26 | return new DGNStoreParameters(); |
||
27 | } |
||
28 | |||
29 | public int allowCreate() { |
||
30 | return NO;
|
||
31 | } |
||
32 | |||
33 | public int allowWrite() { |
||
34 | return NO;
|
||
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 int allowMultipleGeometryTypes() { |
||
54 | return YES;
|
||
55 | } |
||
56 | |||
57 | } |