root / branches / Mobile_Compatible_Hito_1 / libFMap / src-file / org / gvsig / data / datastores / vectorial / file / AbstractDataExplorerFile.java @ 21846
History | View | Annotate | Download (1.4 KB)
1 |
package org.gvsig.data.datastores.vectorial.file; |
---|---|
2 |
|
3 |
import java.io.File; |
4 |
|
5 |
import org.gvsig.data.DataManager; |
6 |
import org.gvsig.data.DataStore; |
7 |
import org.gvsig.data.DataStoreParameters; |
8 |
import org.gvsig.data.NewDataStoreParameters; |
9 |
import org.gvsig.data.InitializeException; |
10 |
import org.gvsig.data.ReadException; |
11 |
import org.gvsig.data.WriteException; |
12 |
import org.gvsig.data.vectorial.FeatureStoreExplorer; |
13 |
import org.gvsig.data.vectorial.NewFeatureStoreParameters; |
14 |
|
15 |
public abstract class AbstractDataExplorerFile implements FeatureStoreExplorer { |
16 |
|
17 |
public boolean canCreate() { |
18 |
return false; |
19 |
} |
20 |
|
21 |
public DataStore createDataStore(DataStoreParameters dsp)
|
22 |
throws InitializeException {
|
23 |
DataManager manager = DataManager.getManager(); |
24 |
return manager.createDataStore(dsp);
|
25 |
} |
26 |
|
27 |
protected abstract boolean isValid(String file); |
28 |
|
29 |
protected abstract boolean isValid(File file); |
30 |
|
31 |
public DataStoreParameters add(NewFeatureStoreParameters ndsp)
|
32 |
throws WriteException, InitializeException {
|
33 |
throw new UnsupportedOperationException(); |
34 |
} |
35 |
|
36 |
public DataStoreParameters add(NewDataStoreParameters ndsp)
|
37 |
throws WriteException, InitializeException {
|
38 |
return this.add((NewFeatureStoreParameters) ndsp); |
39 |
} |
40 |
|
41 |
public void remove(DataStoreParameters dsp) throws ReadException { |
42 |
throw new UnsupportedOperationException(); |
43 |
|
44 |
} |
45 |
|
46 |
public NewDataStoreParameters createNewDataStoreParameter() {
|
47 |
throw new UnsupportedOperationException(); |
48 |
} |
49 |
|
50 |
} |