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 / ExportAttributes.java @ 44801

History | View | Annotate | Download (2.4 KB)

1 44270 omartinez
/*
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 44386 omartinez
import java.util.List;
9 44270 omartinez
import org.gvsig.export.ExportAttributes.ExportAttribute;
10
import org.gvsig.export.spi.AttributeNamesTranslator;
11
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor;
12 44754 omartinez
import org.gvsig.fmap.dal.feature.FeatureQuery;
13 44270 omartinez
import org.gvsig.fmap.dal.feature.FeatureType;
14 44411 omartinez
import org.gvsig.tools.persistence.Persistent;
15 44270 omartinez
import org.gvsig.tools.util.UnmodifiableBasicList;
16
17
/**
18
 *
19
 * @author osc
20
 */
21 44411 omartinez
public interface ExportAttributes extends UnmodifiableBasicList<ExportAttribute>, Cloneable, Persistent {
22 44270 omartinez
23 44386 omartinez
    public ExportAttributes clone() throws CloneNotSupportedException;
24 44270 omartinez
25 44395 omartinez
    public void setActive(boolean b);
26
27
    public boolean isActive();
28
29 44411 omartinez
    public interface ExportAttribute extends Cloneable, Persistent {
30 44801 omartinez
31 44270 omartinez
        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 44572 jjdelcerro
43
        public boolean isComputed();
44 44270 omartinez
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 44386 omartinez
55 44572 jjdelcerro
        public void setComputed(boolean computed);
56
57 44386 omartinez
        public ExportAttribute clone() throws CloneNotSupportedException;
58 44270 omartinez
    }
59
60
    public ExportAttribute getExportAttribute(String name);
61
62
    public FeatureType getTargetFeatureType(); //es el que prepara el featuretype. el del set
63
64 44754 omartinez
    public void setSourceFeatureType(FeatureType sourceFeatureType, FeatureQuery query); //rellena
65 44270 omartinez
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 44300 omartinez
80
    public boolean isAttributeNamesValid();
81
82
    public void fixAttributeNames();
83 44386 omartinez
84
    public void setExportAttributes(List<ExportAttribute>  exportAttributes);
85 44270 omartinez
}