root / trunk / libraries / libDataSource / src / org / gvsig / data / vectorial / IFeature.java @ 19440
History | View | Annotate | Download (2.31 KB)
1 |
package org.gvsig.data.vectorial; |
---|---|
2 |
|
3 |
import java.util.Date; |
4 |
import java.util.List; |
5 |
import java.util.Map; |
6 |
|
7 |
import org.gvsig.data.spatialprovisional.IExtent; |
8 |
|
9 |
|
10 |
public interface IFeature extends Map { |
11 |
|
12 |
public IFeatureID getID();
|
13 |
public IFeatureType getType();
|
14 |
|
15 |
public Object getDefaultGeometry(); |
16 |
|
17 |
public Object get(String name); |
18 |
public int getInt(String name); |
19 |
public boolean getBoolean(String name); |
20 |
public long getLong(String name); |
21 |
public float getFloat(String name); |
22 |
public double getDouble(String name); |
23 |
public Date getDate(String name); |
24 |
|
25 |
public Object get(int index); |
26 |
public IFeature getFeature(int index); |
27 |
public Object[] getArray(int index); |
28 |
public int getInt(int index); |
29 |
public boolean getBoolean(int index); |
30 |
public long getLong(int index); |
31 |
public float getFloat(int index); |
32 |
public double getDouble(int index); |
33 |
public Date getDate(int index); |
34 |
|
35 |
public void set(String name, Object value); |
36 |
public void set(String name, int value); |
37 |
public void set(String name, boolean value); |
38 |
public void set(String name, long value); |
39 |
public void set(String name, float value); |
40 |
public void set(String name, double value); |
41 |
public void set(String name, byte value); |
42 |
|
43 |
public void set(int index, Object value); |
44 |
public void set(int index, int value); |
45 |
public void set(int index, boolean value); |
46 |
public void set(int index, long value); |
47 |
public void set(int index, float value); |
48 |
public void set(int index, double value); |
49 |
public void set(int index, byte value); |
50 |
|
51 |
/**
|
52 |
* Rectangle of DefaultGeometry.
|
53 |
*
|
54 |
* @return Rectangle2D
|
55 |
*/
|
56 |
public IExtent getExtent();
|
57 |
|
58 |
|
59 |
// FIXME: Fechas, horas ¿que mas?
|
60 |
|
61 |
|
62 |
// TODO: Lanzar una RuleException con datos como el registro
|
63 |
// que no cumple, la regla que no lo ha cumplido, etc.
|
64 |
public void validateModification(IFeatureStore featureStore); |
65 |
|
66 |
public void validateEnd(IFeatureStore featureStore); |
67 |
|
68 |
public void validate(IFeatureStore featureStore); |
69 |
|
70 |
public List getAllSRS(); |
71 |
public String getDefaultSRS(); |
72 |
public IFeature getFeature(String name); |
73 |
|
74 |
public Object getGeometry(int index); |
75 |
public Object getGeometry(String name); |
76 |
public String getString(int index); |
77 |
public String getString(String name); |
78 |
public byte getByte(int index); |
79 |
public byte getByte(String name); |
80 |
public void setDefaultGeometry(Object geometry); |
81 |
|
82 |
} |