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 24496 jmvivo
package org.gvsig.fmap.dal.feature;
2 19399 vcaballero
3
import java.util.Date;
4
import java.util.List;
5
6 23214 jmvivo
import org.gvsig.fmap.geom.Geometry;
7 21174 vcaballero
import org.gvsig.fmap.geom.primitive.Envelope;
8 19399 vcaballero
9 23329 vacevedo
/**
10 23754 jjdelcerro
 * <p>Represents the basic unit of the tabular
11 23329 vacevedo
 * data element (could be equivalent to data base register).
12
 * </p>
13
 * <br>
14
 * <p>The Feature:
15
 *   <ul>
16 23754 jjdelcerro
 *     <li>Can create a unike identifier <code>FeatureID</code>
17 23329 vacevedo
 *     to recognize our Feature from each other of the same
18
 *     data source</li>
19 23754 jjdelcerro
 *     <li>Have a <code>FeatureType</code> that shows the
20
 *     charasteristics of the <code>Feature</code> (fields,
21 23329 vacevedo
 *     fileds data type, default geometry, validation rules).</li>
22
 *   </ul>
23
 * </p>
24 23754 jjdelcerro
 * <p><code>Feature</code> has all necesary methoths to access and
25 23329 vacevedo
 * modify fileds values.</p>
26 23754 jjdelcerro
 *
27 23329 vacevedo
 * @author
28
 *
29
 */
30 19440 vcaballero
31 21045 jmvivo
public interface Feature {
32 19399 vcaballero
33 20599 jmvivo
34 23842 jjdelcerro
        public FeatureReference getReference();
35 21045 jmvivo
        public FeatureType getType();
36 23754 jjdelcerro
        public Feature getCopy();
37 19399 vcaballero
38 23754 jjdelcerro
        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 19399 vcaballero
43 23754 jjdelcerro
        public EditableFeature getEditable();
44 19399 vcaballero
45 23754 jjdelcerro
        public Object   get(String name);
46
        public Object   get(int index);
47 19399 vcaballero
48 23754 jjdelcerro
        public int      getInt(String name);
49
        public int      getInt(int index);
50 19399 vcaballero
51 23754 jjdelcerro
        public boolean  getBoolean(String name);
52
        public boolean  getBoolean(int index);
53 19399 vcaballero
54 23754 jjdelcerro
        public long     getLong(String name);
55
        public long     getLong(int index);
56 20412 vcaballero
57 23754 jjdelcerro
        public float   getFloat(String name);
58
        public float    getFloat(int index);
59 20412 vcaballero
60 23754 jjdelcerro
        public double  getDouble(String name);
61
        public double   getDouble(int index);
62 20412 vcaballero
63 23754 jjdelcerro
        public Date    getDate(String name);
64
        public Date     getDate(int index);
65 20412 vcaballero
66 23754 jjdelcerro
        public String  getString(String name);
67
        public String   getString(int index);
68 19399 vcaballero
69 23754 jjdelcerro
        public byte    getByte(String name);
70
        public byte     getByte(int index);
71 19399 vcaballero
72 23754 jjdelcerro
        public Geometry getGeometry(String name);
73
        public Geometry getGeometry(int index);
74 19399 vcaballero
75 23754 jjdelcerro
        public Object[] getArray(String name);
76
        public Object[] getArray(int index);
77 19399 vcaballero
78 23754 jjdelcerro
        public Feature  getFeature(String name);
79
        public Feature  getFeature(int index);
80 19399 vcaballero
81 23754 jjdelcerro
82 23329 vacevedo
        /**
83 23754 jjdelcerro
         * Rectangle of DefaultGeometry.
84
         *
85
         * @return Envelope
86 23329 vacevedo
         */
87 23754 jjdelcerro
        public Envelope getDefaultEnvelope();
88 19399 vcaballero
89 23754 jjdelcerro
        public Geometry getDefaultGeometry();
90
        public List getGeometries();
91
92
        public String getDefaultSRS();
93
        public List getSRSs();
94
95 19399 vcaballero
}