root / org.gvsig.dxf / trunk / org.gvsig.dxf / org.gvsig.dxf.exportto / src / main / java / org / gvsig / export / dxf / service / ExportDXFParametersImpl.java @ 440
History | View | Annotate | Download (843 Bytes)
1 |
package org.gvsig.export.dxf.service; |
---|---|
2 |
|
3 |
import java.io.File; |
4 |
import org.apache.commons.io.FilenameUtils; |
5 |
import org.gvsig.export.spi.AbstractExportParametersGeometry; |
6 |
import org.gvsig.export.spi.ExportServiceFactory; |
7 |
|
8 |
/**
|
9 |
*
|
10 |
* @author jjdelcerro
|
11 |
*/
|
12 |
public class ExportDXFParametersImpl |
13 |
extends AbstractExportParametersGeometry
|
14 |
implements ExportDXFParameters
|
15 |
{ |
16 |
private File file; |
17 |
|
18 |
public ExportDXFParametersImpl(ExportServiceFactory factory) {
|
19 |
super(factory);
|
20 |
} |
21 |
|
22 |
@Override
|
23 |
public String getServiceName() { |
24 |
return ExportDXFServiceFactory.SERVICE_NAME;
|
25 |
} |
26 |
|
27 |
@Override
|
28 |
public File getFile() { |
29 |
return this.file; |
30 |
} |
31 |
|
32 |
@Override
|
33 |
public void setFile(File file) { |
34 |
this.file = new File(FilenameUtils.removeExtension(file.getAbsolutePath()) + ".dxf"); |
35 |
} |
36 |
|
37 |
} |