Statistics
| Revision:

root / trunk / libraries / libDataSource / src / org / gvsig / data / vectorial / IFeature.java @ 19399

History | View | Annotate | Download (2.44 KB)

1
package org.gvsig.data.vectorial;
2

    
3
import java.awt.geom.Rectangle2D;
4
import java.util.Date;
5
import java.util.List;
6
import java.util.Map;
7

    
8
import org.cresques.cts.IProjection;
9

    
10

    
11
public interface IFeature extends Map {
12

    
13
        public IFeatureID getID();
14
        public IFeatureType getType();
15

    
16
        public Object getDefaultGeometry();
17

    
18
        public Object get(String name);
19
        public int getInt(String name);
20
        public boolean getBoolean(String name);
21
        public long getLong(String name);
22
        public float getFloat(String name);
23
        public double getDouble(String name);
24
        public Date getDate(String name);
25

    
26
        public Object get(int index);
27
        public IFeature getFeature(int index);
28
        public Object[] getArray(int index);
29
        public int getInt(int index);
30
        public boolean getBoolean(int index);
31
        public long getLong(int index);
32
        public float getFloat(int index);
33
        public double getDouble(int index);
34
        public Date getDate(int index);
35

    
36
        public void set(String name, Object value);
37
        public void set(String name, int value);
38
        public void set(String name, boolean value);
39
        public void set(String name, long value);
40
        public void set(String name, float value);
41
        public void set(String name, double value);
42
        public void set(String name, byte value);
43

    
44
        public void set(int index, Object value);
45
        public void set(int index, int value);
46
        public void set(int index, boolean value);
47
        public void set(int index, long value);
48
        public void set(int index, float value);
49
        public void set(int index, double value);
50
        public void set(int index, byte value);
51

    
52
        /**
53
         * Rectangle of DefaultGeometry.
54
         *
55
         * @return Rectangle2D
56
         */
57
        public Rectangle2D getBoundingBox2D();
58

    
59
        /**
60
         *
61
         * @return
62
         */
63
        public Object getBoundingBox();
64

    
65
        // FIXME: Fechas, horas ¿que mas?
66

    
67

    
68
//         TODO: Lanzar una RuleException con datos como el registro
69
// que no cumple, la regla que no lo ha cumplido, etc.
70
        public void validateModification(IFeatureStore featureStore);
71

    
72
        public void validateEnd(IFeatureStore featureStore);
73

    
74
        public void validate(IFeatureStore featureStore);
75

    
76
        public List getAllSRS();
77
        public IProjection getDefaultSRS();
78
        public int[] getGeometryTypes();
79
        public IFeature getFeature(String name);
80

    
81
        public Object getGeometry(int index);
82
        public Object getGeometry(String name);
83
        public String getString(int index);
84
        public String getString(String name);
85
        public byte getByte(int index);
86
        public byte getByte(String name);
87
        public void setDefaultGeometry(Object geometry);
88

    
89
}