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 @ 43925
History | View | Annotate | Download (1.45 KB)
1 |
package org.gvsig.export.spi; |
---|---|
2 |
|
3 |
import java.util.List; |
4 |
import org.cresques.cts.ICoordTrans; |
5 |
import org.gvsig.export.ExportParameters; |
6 |
import org.gvsig.export.ExportParametersGeometry; |
7 |
import org.gvsig.export.Filter; |
8 |
import org.gvsig.fmap.dal.feature.FeatureType; |
9 |
import org.gvsig.fmap.geom.Geometry; |
10 |
|
11 |
/**
|
12 |
*
|
13 |
* @author jjdelcerro
|
14 |
*/
|
15 |
public interface ExportServiceManager { |
16 |
|
17 |
public interface FixGeometryStatus { |
18 |
public static final int STATE_OK = 0; |
19 |
public static final int STATE_SKIP = 1; |
20 |
public static final int STATE_ABORT = 2; |
21 |
|
22 |
public Geometry getGeometry();
|
23 |
public int getState(); |
24 |
public String getMessage(); |
25 |
} |
26 |
|
27 |
public List<ExportServiceFactory> getAllServiceFactories(); |
28 |
|
29 |
public List<ExportServiceFactory> getServiceFactories(Filter<ExportServiceFactory> filter); |
30 |
|
31 |
public ExportServiceFactory getServiceFactory(String name); |
32 |
|
33 |
public ExportService createService(ExportParameters paramaters);
|
34 |
|
35 |
public ExportParameters createServiceParameters(String name); |
36 |
|
37 |
public void register(ExportServiceFactory factory); |
38 |
|
39 |
public AttributeNamesTranslator createAttributeNamesTranslator();
|
40 |
|
41 |
public AttributeNamesTranslator createAttributeNamesTranslator(
|
42 |
FeatureType type, |
43 |
int maxNameLen
|
44 |
); |
45 |
|
46 |
public FixGeometryStatus fixGeometry(
|
47 |
ExportParametersGeometry parameters, |
48 |
ICoordTrans coord_trans, |
49 |
Geometry geometry |
50 |
); |
51 |
} |