Revision 44203 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/impl/DefaultFeature.java
DefaultFeature.java | ||
---|---|---|
234 | 234 |
FeatureAttributeDescriptor attribute = (FeatureAttributeDescriptor) iterator |
235 | 235 |
.next(); |
236 | 236 |
if (attribute.isAutomatic() || attribute.isReadOnly() |
237 |
|| attribute.getEvaluator() != null) {
|
|
237 |
|| attribute.isComputed() ) {
|
|
238 | 238 |
continue; |
239 | 239 |
} |
240 | 240 |
if (attribute.getDefaultValue() == null && !attribute.allowNull()) { |
... | ... | |
518 | 518 |
private Object get(FeatureAttributeDescriptor featureAttributeDescriptor, Object value){ |
519 | 519 |
FeatureAttributeEmulator emulator = featureAttributeDescriptor.getFeatureAttributeEmulator(); |
520 | 520 |
if( emulator != null ) { |
521 |
value = emulator.get(this); |
|
521 |
int index = featureAttributeDescriptor.getIndex(); |
|
522 |
value = this.data.get(index); |
|
523 |
if( value==null ) { |
|
524 |
value = emulator.get(this); |
|
525 |
this.data.set(index,value); |
|
526 |
} |
|
522 | 527 |
} else { |
523 | 528 |
FeatureAttributeGetter getter = featureAttributeDescriptor.getFeatureAttributeGetter(); |
524 | 529 |
if( getter != null ) { |
Also available in: Unified diff