Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.newlayer / org.gvsig.newlayer.lib / org.gvsig.newlayer.lib.api / src / main / java / org / gvsig / newlayer / NewLayerService.java @ 45564

History | View | Annotate | Download (2.8 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 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 3
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.newlayer;
25

    
26
import java.util.List;
27

    
28
import org.gvsig.fmap.dal.DataServerExplorer;
29
import org.gvsig.fmap.dal.DataStoreParameters;
30
import org.gvsig.fmap.dal.feature.EditableFeatureType;
31
import org.gvsig.fmap.dal.feature.FeatureStore;
32
import org.gvsig.fmap.dal.feature.NewFeatureStoreParameters;
33
import org.gvsig.fmap.mapcontext.MapContext;
34

    
35
/**
36
 * <p>
37
 * This service is used to create a new {@link FeatureStore}.
38
 * </p>
39
 * 
40
 * @author gvSIG team
41
 * @version $Id$
42
 */
43
public interface NewLayerService {
44

    
45
    /**
46
     * @param type
47
     * @deprecated use {@link #setProviderFactory(NewLayerProviderFactory)}
48
     *             instead
49
     */
50
    public void setType(String type);
51

    
52
    /**
53
     * @return 
54
     * @deprecated use {@link #getProviderFactory()} instead
55
     */
56
    public String getType();
57

    
58
    /**
59
     * @return 
60
     * @deprecated use {@link #getProviderFactories()} instead
61
     */
62
    public List<String> getTypes();
63

    
64
    public void setProviderFactory(NewLayerProviderFactory type);
65
    
66
    public NewLayerProviderFactory getProviderFactory();
67

    
68
    public List<NewLayerProviderFactory> getProviderFactories();
69
    
70
    public void createTable() throws NewLayerServiceException;
71

    
72
    public void loadTable() throws NewLayerServiceException;
73

    
74
    public DataServerExplorer getExplorer() throws NewLayerException;
75
    
76
    public String getStoreName();
77
    
78
    public EditableFeatureType getFeatureType();
79
    
80
    public NewFeatureStoreParameters getNewStoreParameters() throws NewLayerException;
81
    
82
    public DataStoreParameters getOpenStoreParameters() throws NewLayerException;
83
    
84
    public NewFeatureStoreParameters getNewStoreParametersQuietly();
85
    
86
    public DataStoreParameters getOpenStoreParametersQuietly();
87
    
88
    public NewLayerProvider getProvider();
89
    
90
    public void addLayerToView(boolean b);
91
    
92
    public MapContext getMapContext();
93
    
94
}