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 / EditingServiceInfo.java @ 98
History | View | Annotate | Download (1.92 KB)
1 |
/*
|
---|---|
2 |
* Copyright 2014 DiSiD Technologies S.L.L. All rights reserved.
|
3 |
*
|
4 |
* Project : DiSiD org.gvsig.vectorediting.lib.api
|
5 |
* SVN Id : $Id$
|
6 |
*/
|
7 |
package org.gvsig.vectorediting.lib.api; |
8 |
|
9 |
import java.awt.Image; |
10 |
import java.util.List; |
11 |
|
12 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
13 |
import org.gvsig.vectorediting.lib.api.exceptions.ServiceInformationException; |
14 |
|
15 |
/**
|
16 |
*
|
17 |
*
|
18 |
*
|
19 |
* @author gvSIG team.
|
20 |
*
|
21 |
*/
|
22 |
public interface EditingServiceInfo { |
23 |
|
24 |
/**
|
25 |
* Return if service creates new geometries.
|
26 |
*
|
27 |
* @return true if service creates new geometries otherwise false.
|
28 |
*/
|
29 |
public boolean createsNewGeometries(); |
30 |
|
31 |
/**
|
32 |
* Get mouse icon associated.
|
33 |
*
|
34 |
* @return Image that represents mouse icon.
|
35 |
*/
|
36 |
public Image getMouseIcon(); |
37 |
|
38 |
|
39 |
/**
|
40 |
* Gets a <code>List</code> with all parameters of service. Each parameter has
|
41 |
* name, description and types. See {@link EditingServiceParameter}.
|
42 |
*
|
43 |
* @return A list of {@link EditingServiceParameter} objects.
|
44 |
*/
|
45 |
public List<EditingServiceParameter> getParameters(); |
46 |
|
47 |
/**
|
48 |
* Gets supported primitive geometry types of service.
|
49 |
*
|
50 |
* @return
|
51 |
*/
|
52 |
public int[] getSupportedPrimitiveGeometryTypes(); |
53 |
|
54 |
/**
|
55 |
* Gets description of service.
|
56 |
*
|
57 |
* @return Description of service.
|
58 |
*/
|
59 |
public String getDescription(); |
60 |
|
61 |
/**
|
62 |
* Gets name of service
|
63 |
*
|
64 |
* @return service name.
|
65 |
*/
|
66 |
public String getName(); |
67 |
|
68 |
/**
|
69 |
* Gets read only information about a parameter of this service.
|
70 |
*
|
71 |
* @param name Name of parameter.
|
72 |
* @return An {@link EditingServiceParameter} object of parameter.
|
73 |
*/
|
74 |
public EditingServiceParameter getParameterInfo(String name); |
75 |
|
76 |
/**
|
77 |
* Returns if service is compatible with the feature store received as parameter.
|
78 |
*
|
79 |
* @param featureStore
|
80 |
* @return True if service is compatible otherwise false.
|
81 |
*/
|
82 |
public boolean isCompatibleWith(FeatureStore featureStore) throws ServiceInformationException; |
83 |
|
84 |
} |