gvsig-vectorediting / org.gvsig.vectorediting / trunk / org.gvsig.vectorediting / org.gvsig.vectorediting.lib / org.gvsig.vectorediting.lib.api / src / main / java / org / gvsig / vectorediting / lib / api / EditingManager.java @ 322
History | View | Annotate | Download (2.72 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright ? 2007-2014 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 |
|
25 |
package org.gvsig.vectorediting.lib.api; |
26 |
|
27 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
28 |
import org.gvsig.fmap.mapcontext.MapContext; |
29 |
import org.gvsig.tools.service.Manager; |
30 |
import org.gvsig.vectorediting.lib.api.exceptions.ServiceInformationException; |
31 |
|
32 |
/**
|
33 |
* Main class that defines the available Editing services.
|
34 |
*
|
35 |
* @author llmarques
|
36 |
* @version $Id$
|
37 |
*/
|
38 |
public interface EditingManager extends Manager { |
39 |
|
40 |
/**
|
41 |
* Gets read only information about a service such as if service creates new
|
42 |
* geometries, name, description, supported types, mouse icon, parameters
|
43 |
* and information about its parameters.
|
44 |
*
|
45 |
* @param serviceName
|
46 |
* service name to get the service information
|
47 |
* @return An <code>EditingServiceInfo</code> object that contains the
|
48 |
* information. {@link EditingServiceInfo}.
|
49 |
* @throws ServiceInformationException
|
50 |
* if there is an error getting
|
51 |
* information of service.
|
52 |
*/
|
53 |
public EditingServiceInfo getServiceInfo(String serviceName) |
54 |
throws ServiceInformationException;
|
55 |
|
56 |
/**
|
57 |
* Gets a new instance of service as of name and featureStore. Check
|
58 |
* names to know what names are accepted.
|
59 |
*
|
60 |
* @param name
|
61 |
* Service name necessary to create an instance linked with the
|
62 |
* appropriate provider.
|
63 |
* @param featureStore
|
64 |
* FeatureStore associated with this service necessary to
|
65 |
* create, update and remove geometries.
|
66 |
* @param mapContext
|
67 |
* of layer in editing mode
|
68 |
* @return An <code> EditingService </code> object. See
|
69 |
* {@link EditingService} .
|
70 |
*/
|
71 |
public EditingService getEditingService(String name, |
72 |
FeatureStore featureStore, MapContext mapContext); |
73 |
} |