Revision 37297 branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/impl/DefaultEditableFeatureType.java
DefaultEditableFeatureType.java | ||
---|---|---|
301 | 301 |
protected void setAllowAutomaticValues(boolean value) { |
302 | 302 |
this.allowAtomaticValues = value; |
303 | 303 |
} |
304 |
|
|
305 |
public void setDefaultTimeAttributeName(String name) { |
|
306 |
if (name == null || name.length() == 0) { |
|
307 |
this.defaultTimeAttributeIndex = -1; |
|
308 |
return; |
|
309 |
} |
|
310 |
DefaultFeatureAttributeDescriptor attr = (DefaultFeatureAttributeDescriptor) this |
|
311 |
.get(name); |
|
312 |
if (attr == null) { |
|
313 |
throw new IllegalArgumentException("Attribute '" + name |
|
314 |
+ "' not found."); |
|
315 |
} |
|
316 |
|
|
317 |
this.defaultTimeAttributeIndex = attr.getIndex(); |
|
318 |
} |
|
304 | 319 |
} |
Also available in: Unified diff