Revision 20469 trunk/libraries/libDataSource/src/org/gvsig/data/vectorial/MemoryFeature.java
MemoryFeature.java | ||
---|---|---|
37 | 37 |
super(type); |
38 | 38 |
if (defaultValues){ |
39 | 39 |
Iterator iterator=type.iterator(); |
40 |
int i=0; |
|
41 | 40 |
this.loading(); |
42 | 41 |
while(iterator.hasNext()){ |
43 | 42 |
IFeatureAttributeDescriptor featureAttribute=(IFeatureAttributeDescriptor)iterator.next(); |
43 |
int i=featureAttribute.ordinal(); |
|
44 | 44 |
String attributeType=featureAttribute.getDataType(); |
45 | 45 |
|
46 | 46 |
Object defaultValue=featureAttribute.getDefaultValue(); |
... | ... | |
72 | 72 |
}else if (attributeType.equals(IFeatureAttributeDescriptor.TYPE_STRING)){ |
73 | 73 |
set(i,defaultValue); |
74 | 74 |
} |
75 |
i++; |
|
76 | 75 |
} |
77 | 76 |
this.stopLoading(); |
78 | 77 |
} |
Also available in: Unified diff