Revision 44738 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.spi/src/main/java/org/gvsig/fmap/dal/feature/spi/FeatureProvider.java
FeatureProvider.java | ||
---|---|---|
21 | 21 |
* For any additional information, do not hesitate to contact us |
22 | 22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
23 | 23 |
*/ |
24 |
|
|
25 | 24 |
package org.gvsig.fmap.dal.feature.spi; |
26 | 25 |
|
27 | 26 |
import org.gvsig.fmap.dal.feature.FeatureType; |
... | ... | |
29 | 28 |
import org.gvsig.fmap.geom.primitive.Envelope; |
30 | 29 |
import org.gvsig.timesupport.Time; |
31 | 30 |
|
32 |
|
|
33 | 31 |
/** |
34 | 32 |
* Inteface for feature of feature based data provider |
35 | 33 |
* |
... | ... | |
38 | 36 |
*/ |
39 | 37 |
public interface FeatureProvider { |
40 | 38 |
|
41 |
/** |
|
42 |
* Indicates whether the attributo must be assigned by the provider. |
|
43 |
* Return true if can be assigned, otherwise return false. |
|
44 |
* |
|
45 |
* @param i |
|
46 |
* index of the attribute |
|
47 |
* @return True if the attribute i can't be set |
|
48 |
*/ |
|
49 |
public boolean isReadOnly(int i); |
|
50 |
|
|
51 |
public void set(int i, Object value); |
|
39 |
/** |
|
40 |
* Indicates whether the attributo must be assigned by the provider. Return |
|
41 |
* true if can be assigned, otherwise return false. |
|
42 |
* |
|
43 |
* @param i index of the attribute |
|
44 |
* @return True if the attribute i can't be set |
|
45 |
*/ |
|
46 |
public boolean isReadOnly(int i); |
|
52 | 47 |
|
53 |
public Object get(int i);
|
|
48 |
public void set(int i, Object value);
|
|
54 | 49 |
|
55 |
public void set(String name, Object value);
|
|
50 |
public Object get(int i);
|
|
56 | 51 |
|
57 |
public Object get(String name);
|
|
52 |
public void set(String name, Object value);
|
|
58 | 53 |
|
59 |
public void setOID(Object oid);
|
|
54 |
public Object get(String name);
|
|
60 | 55 |
|
61 |
public Object getOID();
|
|
56 |
public void setOID(Object oid);
|
|
62 | 57 |
|
63 |
public FeatureType getType();
|
|
58 |
public Object getOID();
|
|
64 | 59 |
|
65 |
public FeatureProvider getCopy();
|
|
60 |
public FeatureType getType();
|
|
66 | 61 |
|
67 |
public Envelope getDefaultEnvelope();
|
|
62 |
public FeatureProvider getCopy();
|
|
68 | 63 |
|
69 |
public Geometry getDefaultGeometry(); |
|
70 |
|
|
71 |
public Time getDefaultTime(); |
|
64 |
public Envelope getDefaultEnvelope(); |
|
72 | 65 |
|
73 |
public void setDefaultEnvelope(Envelope extent);
|
|
66 |
public Geometry getDefaultGeometry();
|
|
74 | 67 |
|
75 |
public void setDefaultGeometry(Geometry geom);
|
|
68 |
public Time getDefaultTime();
|
|
76 | 69 |
|
77 |
public void setDefaultTime(Time time); |
|
78 |
|
|
79 |
public boolean isNull(int i); |
|
70 |
public void setDefaultEnvelope(Envelope extent); |
|
80 | 71 |
|
81 |
public boolean isNull(String name);
|
|
72 |
public void setDefaultGeometry(Geometry geom);
|
|
82 | 73 |
|
83 |
public boolean isNew();
|
|
74 |
public void setDefaultTime(Time time);
|
|
84 | 75 |
|
85 |
public void setNew(boolean isNew);
|
|
76 |
public boolean isNull(int i);
|
|
86 | 77 |
|
87 |
public void setExtraValue(int index, Object value); |
|
88 |
|
|
89 |
public Object getExtraValue(int index); |
|
90 |
|
|
91 |
public Object getExtraValue(String name); |
|
78 |
public boolean isNull(String name); |
|
92 | 79 |
|
93 |
public void setExtraValueNames(String[] extraValueNames);
|
|
80 |
public boolean isNew();
|
|
94 | 81 |
|
82 |
public void setNew(boolean isNew); |
|
83 |
|
|
84 |
public void setExtraValue(int index, Object value); |
|
85 |
|
|
86 |
public void setExtraValueNames(String[] extraValueNames); |
|
87 |
|
|
88 |
public Object getExtraValue(int index); |
|
89 |
|
|
90 |
public Object getExtraValue(String name); |
|
91 |
|
|
92 |
public boolean hasExtraValue(String name); |
|
93 |
|
|
95 | 94 |
} |
Also available in: Unified diff