Statistics
| Revision:

root / branches / v2_0_0_prep / libraries / libFMap_dal / src / org / gvsig / fmap / dal / feature / Feature.java @ 24496

History | View | Annotate | Download (2.31 KB)

1
package org.gvsig.fmap.dal.feature;
2

    
3
import java.util.Date;
4
import java.util.List;
5

    
6
import org.gvsig.fmap.geom.Geometry;
7
import org.gvsig.fmap.geom.primitive.Envelope;
8

    
9
/**
10
 * <p>Represents the basic unit of the tabular
11
 * data element (could be equivalent to data base register).
12
 * </p>
13
 * <br>
14
 * <p>The Feature:
15
 *   <ul>
16
 *     <li>Can create a unike identifier <code>FeatureID</code>
17
 *     to recognize our Feature from each other of the same
18
 *     data source</li>
19
 *     <li>Have a <code>FeatureType</code> that shows the
20
 *     charasteristics of the <code>Feature</code> (fields,
21
 *     fileds data type, default geometry, validation rules).</li>
22
 *   </ul>
23
 * </p>
24
 * <p><code>Feature</code> has all necesary methoths to access and
25
 * modify fileds values.</p>
26
 *
27
 * @author
28
 *
29
 */
30

    
31
public interface Feature {
32

    
33

    
34
        public FeatureReference getReference();
35
        public FeatureType getType();
36
        public Feature getCopy();
37

    
38
        static final int ALL = 0;
39
        static final int UPDATE = 1;
40
        static final int FINISH_EDITING = 2;
41
        public void validate(int mode);
42

    
43
        public EditableFeature getEditable();
44

    
45
        public Object   get(String name);
46
        public Object   get(int index);
47

    
48
        public int      getInt(String name);
49
        public int      getInt(int index);
50

    
51
        public boolean  getBoolean(String name);
52
        public boolean  getBoolean(int index);
53

    
54
        public long     getLong(String name);
55
        public long     getLong(int index);
56

    
57
        public float   getFloat(String name);
58
        public float    getFloat(int index);
59

    
60
        public double  getDouble(String name);
61
        public double   getDouble(int index);
62

    
63
        public Date    getDate(String name);
64
        public Date     getDate(int index);
65

    
66
        public String  getString(String name);
67
        public String   getString(int index);
68

    
69
        public byte    getByte(String name);
70
        public byte     getByte(int index);
71

    
72
        public Geometry getGeometry(String name);
73
        public Geometry getGeometry(int index);
74

    
75
        public Object[] getArray(String name);
76
        public Object[] getArray(int index);
77

    
78
        public Feature  getFeature(String name);
79
        public Feature  getFeature(int index);
80

    
81

    
82
        /**
83
         * Rectangle of DefaultGeometry.
84
         *
85
         * @return Envelope
86
         */
87
        public Envelope getDefaultEnvelope();
88

    
89
        public Geometry getDefaultGeometry();
90
        public List getGeometries();
91

    
92
        public String getDefaultSRS();
93
        public List getSRSs();
94

    
95
}