Statistics
| Revision:

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 @ 2608

History | View | Annotate | Download (2.73 KB)

1 159 llmarques
/**
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 4 llmarques
 */
24 159 llmarques
25 4 llmarques
package org.gvsig.vectorediting.lib.api;
26
27 45 llmarques
import org.gvsig.fmap.dal.feature.FeatureStore;
28 322 llmarques
import org.gvsig.fmap.mapcontext.MapContext;
29 4 llmarques
import org.gvsig.tools.service.Manager;
30 89 llmarques
import org.gvsig.vectorediting.lib.api.exceptions.ServiceInformationException;
31 4 llmarques
32 244 llmarques
/**
33
 * Main class that defines the available Editing services.
34
 *
35
 * @author llmarques
36
 * @version $Id$
37
 */
38 22 llmarques
public interface EditingManager extends Manager {
39 4 llmarques
40 159 llmarques
    /**
41 244 llmarques
     * Gets read only information about a service such as if service creates new
42 159 llmarques
     * geometries, name, description, supported types, mouse icon, parameters
43 244 llmarques
     * and information about its parameters.
44 227 llmarques
     *
45 159 llmarques
     * @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 22 llmarques
56 159 llmarques
    /**
57
     * Gets a new instance of service as of name and featureStore. Check
58
     * names to know what names are accepted.
59 227 llmarques
     *
60 159 llmarques
     * @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 322 llmarques
     * @param mapContext
67
     *            of layer in editing mode
68 159 llmarques
     * @return An <code> EditingService </code> object. See
69
     *         {@link EditingService} .
70
     */
71
    public EditingService getEditingService(String name,
72 322 llmarques
        FeatureStore featureStore, MapContext mapContext);
73 2608 fdiaz
74 4 llmarques
}