root / branches / Mobile_Compatible_Hito_1 / libFMap / src-file / org / gvsig / data / datastores / vectorial / file / AbstractDataExplorerFile.java @ 21606
History | View | Annotate | Download (1.44 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.IDataStore; |
7 |
import org.gvsig.data.IDataStoreParameters; |
8 |
import org.gvsig.data.INewDataStoreParameters; |
9 |
import org.gvsig.data.exception.InitializeException; |
10 |
import org.gvsig.data.exception.ReadException; |
11 |
import org.gvsig.data.exception.WriteException; |
12 |
import org.gvsig.data.vectorial.IFeatureStoreExplorer; |
13 |
import org.gvsig.data.vectorial.INewFeatureStoreParameters; |
14 |
|
15 |
public abstract class AbstractDataExplorerFile implements IFeatureStoreExplorer{ |
16 |
|
17 |
public boolean canCreate() { |
18 |
return false; |
19 |
} |
20 |
|
21 |
public IDataStore createDataStore(IDataStoreParameters dsp) throws InitializeException { |
22 |
DataManager manager = DataManager.getManager(); |
23 |
return manager.createDataStore(dsp);
|
24 |
} |
25 |
|
26 |
protected abstract boolean isValid(String file); |
27 |
protected abstract boolean isValid(File file); |
28 |
|
29 |
public IDataStoreParameters add(INewFeatureStoreParameters ndsp) throws WriteException,InitializeException { |
30 |
throw new UnsupportedOperationException(); |
31 |
} |
32 |
|
33 |
public IDataStoreParameters add(INewDataStoreParameters ndsp) throws WriteException, InitializeException { |
34 |
return this.add((INewFeatureStoreParameters)ndsp); |
35 |
} |
36 |
|
37 |
public void remove(IDataStoreParameters dsp) throws ReadException { |
38 |
throw new UnsupportedOperationException(); |
39 |
|
40 |
} |
41 |
|
42 |
public INewDataStoreParameters createNewDataStoreParameter() {
|
43 |
throw new UnsupportedOperationException(); |
44 |
} |
45 |
|
46 |
|
47 |
} |