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 @ 44754
History | View | Annotate | Download (2.39 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 java.util.List; |
9 |
import org.gvsig.export.ExportAttributes.ExportAttribute; |
10 |
import org.gvsig.export.spi.AttributeNamesTranslator; |
11 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
12 |
import org.gvsig.fmap.dal.feature.FeatureQuery; |
13 |
import org.gvsig.fmap.dal.feature.FeatureType; |
14 |
import org.gvsig.tools.persistence.Persistent; |
15 |
import org.gvsig.tools.util.UnmodifiableBasicList; |
16 |
|
17 |
/**
|
18 |
*
|
19 |
* @author osc
|
20 |
*/
|
21 |
public interface ExportAttributes extends UnmodifiableBasicList<ExportAttribute>, Cloneable, Persistent { |
22 |
|
23 |
public ExportAttributes clone() throws CloneNotSupportedException; |
24 |
|
25 |
public void setActive(boolean b); |
26 |
|
27 |
public boolean isActive(); |
28 |
|
29 |
public interface ExportAttribute extends Cloneable, Persistent { |
30 |
|
31 |
public FeatureAttributeDescriptor getDescriptor();
|
32 |
|
33 |
public String getName(); |
34 |
|
35 |
public String getNewName(); |
36 |
|
37 |
public int getDataType(); |
38 |
|
39 |
public int getNewDataType(); |
40 |
|
41 |
public boolean isExported(); |
42 |
|
43 |
public boolean isComputed(); |
44 |
|
45 |
public int getSize(); |
46 |
|
47 |
public void setSize(int size); |
48 |
|
49 |
public void setNewName(String name); |
50 |
|
51 |
public void setNewType(int dataType); |
52 |
|
53 |
public void setExported(boolean exported); |
54 |
|
55 |
public void setComputed(boolean computed); |
56 |
|
57 |
public ExportAttribute clone() throws CloneNotSupportedException; |
58 |
} |
59 |
|
60 |
public ExportAttribute getExportAttribute(String name); |
61 |
|
62 |
public FeatureType getTargetFeatureType(); //es el que prepara el featuretype. el del set |
63 |
|
64 |
public void setSourceFeatureType(FeatureType sourceFeatureType, FeatureQuery query); //rellena |
65 |
|
66 |
public FeatureType getSourceFeatureType();
|
67 |
|
68 |
public String getTargetName(String name); |
69 |
|
70 |
public String getSourceName(String name); |
71 |
|
72 |
public int getTargetType(String name); |
73 |
|
74 |
public int getSourceType(String name); |
75 |
|
76 |
public void setNamesTranslator(AttributeNamesTranslator attnt); |
77 |
|
78 |
public AttributeNamesTranslator getNamesTranslator();
|
79 |
|
80 |
public boolean isAttributeNamesValid(); |
81 |
|
82 |
public void fixAttributeNames(); |
83 |
|
84 |
public void setExportAttributes(List<ExportAttribute> exportAttributes); |
85 |
} |