Statistics
| Revision:

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 / DummyAttributeNamesTranslator.java @ 44386

History | View | Annotate | Download (738 Bytes)

1 44386 omartinez
package org.gvsig.export.spi;
2 43504 jjdelcerro
3 44270 omartinez
import org.gvsig.export.ExportAttributes;
4 43504 jjdelcerro
5 44386 omartinez
public class DummyAttributeNamesTranslator implements AttributeNamesTranslator {
6 43504 jjdelcerro
7 44386 omartinez
    public DummyAttributeNamesTranslator() {
8
9 43504 jjdelcerro
    }
10 44386 omartinez
11 44270 omartinez
    @Override
12
    public boolean isValidName(ExportAttributes attributes, int index, String name) {
13 44386 omartinez
        return true;
14 44270 omartinez
    }
15
16
    @Override
17
    public String getNameSuggestion(ExportAttributes attributes, int index, String name) {
18 44386 omartinez
        return name;
19 44270 omartinez
    }
20 44386 omartinez
21
    @Override
22
    public AttributeNamesTranslator clone() throws CloneNotSupportedException {
23
        return (AttributeNamesTranslator) super.clone();
24
    }
25
26
    @Override
27
    public String getNameSuggestion(String name) {
28
        return name;
29
    }
30 43504 jjdelcerro
}