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 / ExportAttributes.java @ 44270
History | View | Annotate | Download (1.71 KB)
1 |
/*
|
---|---|
2 |
* To change this license header, choose License Headers in Project Properties.
|
3 |
* To change this template file, choose Tools | Templates
|
4 |
* and open the template in the editor.
|
5 |
*/
|
6 |
package org.gvsig.export; |
7 |
|
8 |
import org.gvsig.export.ExportAttributes.ExportAttribute; |
9 |
import org.gvsig.export.spi.AttributeNamesTranslator; |
10 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
11 |
import org.gvsig.fmap.dal.feature.FeatureType; |
12 |
import org.gvsig.tools.util.UnmodifiableBasicList; |
13 |
|
14 |
/**
|
15 |
*
|
16 |
* @author osc
|
17 |
*/
|
18 |
public interface ExportAttributes extends UnmodifiableBasicList<ExportAttribute> { |
19 |
|
20 |
public interface ExportAttribute { |
21 |
|
22 |
public FeatureAttributeDescriptor getDescriptor();
|
23 |
|
24 |
public String getName(); |
25 |
|
26 |
public String getNewName(); |
27 |
|
28 |
public int getDataType(); |
29 |
|
30 |
public int getNewDataType(); |
31 |
|
32 |
public boolean isExported(); |
33 |
|
34 |
public int getSize(); |
35 |
|
36 |
public void setSize(int size); |
37 |
|
38 |
public void setNewName(String name); |
39 |
|
40 |
public void setNewType(int dataType); |
41 |
|
42 |
public void setExported(boolean exported); |
43 |
} |
44 |
|
45 |
public ExportAttribute getExportAttribute(String name); |
46 |
|
47 |
public FeatureType getTargetFeatureType(); //es el que prepara el featuretype. el del set |
48 |
|
49 |
public void setSourceFeatureType(FeatureType sourceFeatureType); //rellena |
50 |
|
51 |
public FeatureType getSourceFeatureType();
|
52 |
|
53 |
public String getTargetName(String name); |
54 |
|
55 |
public String getSourceName(String name); |
56 |
|
57 |
public int getTargetType(String name); |
58 |
|
59 |
public int getSourceType(String name); |
60 |
|
61 |
public void setNamesTranslator(AttributeNamesTranslator attnt); |
62 |
|
63 |
public AttributeNamesTranslator getNamesTranslator();
|
64 |
} |