gvsig-gdal / trunk / org.gvsig.gdal2 / org.gvsig.gdal2.prov / org.gvsig.gdal2.prov.ogr / src / main / java / org / gvsig / gdal / prov / ogr / OGRDataStoreProviderFactory.java @ 368
History | View | Annotate | Download (2.45 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright ? 2007-2016 gvSIG Association
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 2
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
* For any additional information, do not hesitate to contact us
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
23 |
*/
|
24 |
package org.gvsig.gdal.prov.ogr; |
25 |
|
26 |
import org.gvsig.fmap.dal.feature.FeatureStoreProviderFactory; |
27 |
import org.gvsig.tools.dynobject.DynObject; |
28 |
|
29 |
/**
|
30 |
* OGR Provider factory to create parameters to create specific server data
|
31 |
* explorers and specific data store providers.
|
32 |
*
|
33 |
* @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
|
34 |
*
|
35 |
*/
|
36 |
public interface OGRDataStoreProviderFactory extends FeatureStoreProviderFactory { |
37 |
|
38 |
/**
|
39 |
*
|
40 |
* @return Name of driver used to open sources
|
41 |
*/
|
42 |
public String getDriver(); |
43 |
|
44 |
/**
|
45 |
* Creates specific parameters if factory can open connection object. If it
|
46 |
* can not open, it will be return null.
|
47 |
*
|
48 |
* @param connectionObject
|
49 |
* File or connection string to be opened
|
50 |
* @return Data explorer parameters If this factory can open connection
|
51 |
* object it will be return specific parameters, otherwise return
|
52 |
* null.
|
53 |
*/
|
54 |
public DynObject createParameters(Object connectionObject); |
55 |
|
56 |
/**
|
57 |
* Creates specific data explorer parameters if factory can open connection
|
58 |
* object. If it
|
59 |
* can not open, it will be return null.
|
60 |
*
|
61 |
* @param connectionObject
|
62 |
* File or connection string to be opened
|
63 |
* @return Data explorer parameters If this factory can open connection
|
64 |
* object it will be return specific data explrer parameters,
|
65 |
* otherwise return
|
66 |
* null.
|
67 |
*/
|
68 |
public DynObject createDataExplorerParameters(Object connectionObject); |
69 |
|
70 |
} |