Revision 21353 branches/v2_0_0_prep/libraries/libFMap_data/src/org/gvsig/data/vectorial/DefaultFeatureType.java
DefaultFeatureType.java | ||
---|---|---|
117 | 117 |
public String[] getFieldsId() { |
118 | 118 |
return fieldsId; |
119 | 119 |
} |
120 |
|
|
120 |
public String[] getFields() { |
|
121 |
Iterator iterator=this.iterator(); |
|
122 |
ArrayList names=new ArrayList(); |
|
123 |
while (iterator.hasNext()) { |
|
124 |
FeatureAttributeDescriptor fad = (FeatureAttributeDescriptor) iterator.next(); |
|
125 |
names.add(fad.getName()); |
|
126 |
} |
|
127 |
return (String[])names.toArray(new String[0]); |
|
128 |
} |
|
121 | 129 |
public void setFieldsId(String[] fieldsId) throws DataException { |
122 | 130 |
this.fieldsId = fieldsId; |
123 | 131 |
if (fieldsId != null) { |
... | ... | |
203 | 211 |
protected int getCount() { |
204 | 212 |
return count; |
205 | 213 |
} |
206 |
|
|
214 |
|
|
207 | 215 |
public void clear(){ |
208 | 216 |
super.clear(); |
209 | 217 |
this.count=0; |
... | ... | |
262 | 270 |
for (i=toRemove.size()-1;i>=0;i--){ |
263 | 271 |
featureType.remove(((Integer)toRemove.get(i)).intValue()); |
264 | 272 |
} |
265 |
|
|
273 |
|
|
266 | 274 |
return featureType; |
267 | 275 |
} |
268 |
|
|
276 |
|
|
269 | 277 |
protected void setWeakReferenceOriginal(DefaultFeatureType type) { |
270 | 278 |
originalFeatureType = new WeakReference(type); |
271 | 279 |
} |
272 | 280 |
public boolean isSubtypeOf(FeatureType featureType) { |
273 | 281 |
if (featureType.equals(this)){ |
274 | 282 |
return true; |
275 |
}
|
|
283 |
} |
|
276 | 284 |
if (this.originalFeatureType == null){ |
277 | 285 |
return false; |
278 | 286 |
} |
Also available in: Unified diff