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 @ 44390
History | View | Annotate | Download (1.66 KB)
1 | 43925 | jjdelcerro | package org.gvsig.export.spi; |
---|---|---|---|
2 | |||
3 | import java.util.List; |
||
4 | import org.cresques.cts.ICoordTrans; |
||
5 | 44270 | omartinez | import org.gvsig.export.ExportAttributes; |
6 | 43925 | jjdelcerro | 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 | 44386 | omartinez | import org.gvsig.tools.bookmarksandhistory.Bookmarks; |
12 | import org.gvsig.tools.bookmarksandhistory.History; |
||
13 | 43925 | jjdelcerro | |
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 | 43936 | jjdelcerro | |
48 | public ExportGeometryHelper createGeometryHelper(
|
||
49 | ExportParametersGeometry parameters, |
||
50 | FeatureType theTargetFeatureType, |
||
51 | FeatureType theSourceFeatureType |
||
52 | ); |
||
53 | 44270 | omartinez | |
54 | 44386 | omartinez | public ExportAttributes createExportAttributes();
|
55 | 43925 | jjdelcerro | } |