svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.exportto / org.gvsig.exportto.lib / org.gvsig.exportto.lib.api / src / main / java / org / gvsig / export / spi / ExportServiceManager.java @ 44386
History | View | Annotate | Download (1.77 KB)
1 |
package org.gvsig.export.spi; |
---|---|
2 |
|
3 |
import java.util.List; |
4 |
import org.cresques.cts.ICoordTrans; |
5 |
import org.gvsig.export.ExportAttributes; |
6 |
import org.gvsig.export.ExportParameters; |
7 |
import org.gvsig.export.ExportParametersGeometry; |
8 |
import org.gvsig.export.Filter; |
9 |
import org.gvsig.fmap.dal.feature.FeatureType; |
10 |
import org.gvsig.fmap.geom.Geometry; |
11 |
import org.gvsig.tools.bookmarksandhistory.Bookmarks; |
12 |
import org.gvsig.tools.bookmarksandhistory.History; |
13 |
|
14 |
/**
|
15 |
*
|
16 |
* @author jjdelcerro
|
17 |
*/
|
18 |
public interface ExportServiceManager { |
19 |
|
20 |
public interface FixGeometryStatus { |
21 |
public static final int STATE_OK = 0; |
22 |
public static final int STATE_SKIP = 1; |
23 |
public static final int STATE_ABORT = 2; |
24 |
|
25 |
public Geometry getGeometry();
|
26 |
public int getState(); |
27 |
public String getMessage(); |
28 |
} |
29 |
|
30 |
public List<ExportServiceFactory> getAllServiceFactories(); |
31 |
|
32 |
public List<ExportServiceFactory> getServiceFactories(Filter<ExportServiceFactory> filter); |
33 |
|
34 |
public ExportServiceFactory getServiceFactory(String name); |
35 |
|
36 |
public ExportService createService(ExportParameters paramaters);
|
37 |
|
38 |
public ExportParameters createServiceParameters(String name); |
39 |
|
40 |
public void register(ExportServiceFactory factory); |
41 |
|
42 |
public FixGeometryStatus fixGeometry(
|
43 |
ExportParametersGeometry parameters, |
44 |
ICoordTrans coord_trans, |
45 |
Geometry geometry |
46 |
); |
47 |
|
48 |
public ExportGeometryHelper createGeometryHelper(
|
49 |
ExportParametersGeometry parameters, |
50 |
FeatureType theTargetFeatureType, |
51 |
FeatureType theSourceFeatureType |
52 |
); |
53 |
|
54 |
public ExportAttributes createExportAttributes();
|
55 |
|
56 |
public History<ExportParameters> getHistory();
|
57 |
|
58 |
public Bookmarks<ExportParameters> getBookmarks();
|
59 |
} |