Revision 44395 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/main/java/org/gvsig/export/impl/DefaultExportProcess.java
DefaultExportProcess.java | ||
---|---|---|
1 | 1 |
package org.gvsig.export.impl; |
2 | 2 |
|
3 | 3 |
import java.util.List; |
4 |
import org.apache.commons.lang3.StringUtils; |
|
5 | 4 |
import org.cresques.cts.ICoordTrans; |
6 | 5 |
import org.cresques.cts.IProjection; |
7 |
import org.gvsig.export.ExportAttributes; |
|
8 | 6 |
import org.gvsig.export.ExportException; |
9 | 7 |
import org.gvsig.export.ExportLocator; |
10 | 8 |
import org.gvsig.export.ExportParameters; |
11 | 9 |
import org.gvsig.export.ExportParametersGeometry; |
12 | 10 |
import org.gvsig.export.ExportProcess; |
13 |
import org.gvsig.export.spi.AttributeNamesTranslator; |
|
14 | 11 |
import org.gvsig.export.spi.ExportService; |
15 | 12 |
import org.gvsig.export.spi.ExportServiceFactory; |
16 | 13 |
import org.gvsig.export.spi.ExportServiceManager; |
... | ... | |
46 | 43 |
|
47 | 44 |
@Override |
48 | 45 |
public void setOutputFormat(String serviceName) throws ExportException { |
49 |
|
|
50 |
if (this.factory != null && StringUtils.equalsIgnoreCase(serviceName, this.factory.getName())) { |
|
51 |
return; |
|
52 |
} |
|
46 |
|
|
53 | 47 |
ExportServiceManager serviceManager = ExportLocator.getServiceManager(); |
54 | 48 |
this.factory = serviceManager.getServiceFactory(serviceName); |
55 | 49 |
this.parameters = this.factory.createParameters(); |
Also available in: Unified diff