root / trunk / org.gvsig.dwg / org.gvsig.dwg.provider / src / main / java / org / gvsig / dwg / fmap / dal / store / dwg / DWGStoreProviderFactory.java @ 258
History | View | Annotate | Download (1.3 KB)
1 |
package org.gvsig.dwg.fmap.dal.store.dwg; |
---|---|
2 |
|
3 |
|
4 |
import org.gvsig.fmap.dal.DataParameters; |
5 |
import org.gvsig.fmap.dal.DataStoreProvider; |
6 |
import org.gvsig.fmap.dal.exception.InitializeException; |
7 |
import org.gvsig.fmap.dal.feature.FeatureStoreProviderFactory; |
8 |
import org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProviderFactory; |
9 |
import org.gvsig.fmap.dal.spi.DataStoreProviderServices; |
10 |
import org.gvsig.tools.dynobject.DynObject; |
11 |
|
12 |
public class DWGStoreProviderFactory extends AbstractFeatureStoreProviderFactory implements FeatureStoreProviderFactory{ |
13 |
|
14 |
protected DWGStoreProviderFactory(String name, String description) { |
15 |
super(name, description);
|
16 |
} |
17 |
|
18 |
public DataStoreProvider createProvider(DataParameters parameters,
|
19 |
DataStoreProviderServices providerServices) |
20 |
throws InitializeException {
|
21 |
return new DWGStoreProvider((DWGOpenStoreParameters) parameters, providerServices); |
22 |
} |
23 |
|
24 |
public DynObject createParameters() {
|
25 |
return new DWGOpenStoreParameters(); |
26 |
} |
27 |
|
28 |
public int allowCreate() { |
29 |
return NO;
|
30 |
} |
31 |
|
32 |
public int allowWrite() { |
33 |
return NO;
|
34 |
} |
35 |
|
36 |
public int allowRead() { |
37 |
return YES;
|
38 |
} |
39 |
|
40 |
public int hasRasterSupport() { |
41 |
return NO;
|
42 |
} |
43 |
|
44 |
public int hasTabularSupport() { |
45 |
return YES;
|
46 |
} |
47 |
|
48 |
public int hasVectorialSupport() { |
49 |
return YES;
|
50 |
} |
51 |
|
52 |
public int allowMultipleGeometryTypes() { |
53 |
return YES;
|
54 |
} |
55 |
|
56 |
} |