Revision 44386 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.csv/src/main/java/org/gvsig/export/csv/service/ExportCSVParametersImpl.java
ExportCSVParametersImpl.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.io.File; |
4 | 4 |
import org.apache.commons.io.FilenameUtils; |
5 |
import org.gvsig.export.ExportLocator;
|
|
5 |
import org.apache.commons.lang3.StringUtils;
|
|
6 | 6 |
import org.gvsig.export.spi.AbstractExportParameters; |
7 |
import org.gvsig.export.spi.AttributeNamesTranslator; |
|
8 | 7 |
import org.gvsig.fmap.dal.feature.FeatureType; |
9 | 8 |
|
10 | 9 |
/** |
... | ... | |
27 | 26 |
private String locale; |
28 | 27 |
private String quotePolicy; |
29 | 28 |
|
29 |
public ExportCSVParametersImpl(ExportCSVServiceFactory factory) { |
|
30 |
super(factory); |
|
31 |
} |
|
32 |
|
|
30 | 33 |
@Override |
31 | 34 |
public String getServiceName() { |
32 | 35 |
return ExportCSVServiceFactory.SERVICE_NAME; |
... | ... | |
45 | 48 |
@Override |
46 | 49 |
public void setSourceFeatureType(FeatureType sourceFeatureType) { |
47 | 50 |
super.setSourceFeatureType(sourceFeatureType); |
48 |
AttributeNamesTranslator attr = ExportLocator.getServiceManager().createAttributeNamesTranslator(ExportCSVService.MAX_FIELD_NAME_LENGTH); |
|
49 |
this.getExportAttributes().setNamesTranslator(attr); |
|
50 |
|
|
51 | 51 |
} |
52 | 52 |
|
53 | 53 |
@Override |
... | ... | |
139 | 139 |
public void setCharset(String charset) { |
140 | 140 |
this.charset = charset; |
141 | 141 |
} |
142 |
|
|
143 |
@Override |
|
144 |
public String toString() { |
|
145 |
String label = StringUtils.join(super.getLabel(),",", this.getProfile()); |
|
146 |
return label; |
|
147 |
} |
|
142 | 148 |
|
143 | 149 |
} |
Also available in: Unified diff