Revision 37297 branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/impl/DefaultEditableFeature.java
DefaultEditableFeature.java | ||
---|---|---|
8 | 8 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
9 | 9 |
import org.gvsig.fmap.dal.feature.spi.FeatureProvider; |
10 | 10 |
import org.gvsig.fmap.geom.Geometry; |
11 |
import org.gvsig.timesupport.Instant; |
|
12 |
import org.gvsig.timesupport.Interval; |
|
11 | 13 |
|
12 | 14 |
public class DefaultEditableFeature extends DefaultFeature implements |
13 | 15 |
EditableFeature { |
... | ... | |
206 | 208 |
} |
207 | 209 |
} |
208 | 210 |
|
211 |
public void setInstant(String name, Instant value) { |
|
212 |
FeatureAttributeDescriptor attribute = this.getType() |
|
213 |
.getAttributeDescriptor(name); |
|
214 |
this.set(attribute, value); |
|
215 |
} |
|
209 | 216 |
|
217 |
public void setInstant(int index, Instant value) { |
|
218 |
FeatureAttributeDescriptor attribute = this.getType() |
|
219 |
.getAttributeDescriptor(index); |
|
220 |
this.set(attribute, value); |
|
221 |
} |
|
222 |
|
|
223 |
public void setInterval(String name, Interval value) { |
|
224 |
FeatureAttributeDescriptor attribute = this.getType() |
|
225 |
.getAttributeDescriptor(name); |
|
226 |
this.set(attribute, value); |
|
227 |
} |
|
228 |
|
|
229 |
public void setInterval(int index, Interval value) { |
|
230 |
FeatureAttributeDescriptor attribute = this.getType() |
|
231 |
.getAttributeDescriptor(index); |
|
232 |
this.set(attribute, value); |
|
233 |
} |
|
210 | 234 |
} |
Also available in: Unified diff