Revision 43954 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/DefaultFeatureAttributeDescriptor.java
DefaultFeatureAttributeDescriptor.java | ||
---|---|---|
32 | 32 |
import org.apache.commons.lang3.ArrayUtils; |
33 | 33 |
import org.cresques.cts.IProjection; |
34 | 34 |
import org.gvsig.fmap.crs.CRSFactory; |
35 |
import org.gvsig.fmap.dal.feature.EditableFeatureAttributeDescriptor; |
|
35 | 36 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
36 | 37 |
import org.gvsig.fmap.dal.feature.FeatureAttributeEmulator; |
37 | 38 |
import org.gvsig.fmap.dal.feature.FeatureAttributeGetter; |
... | ... | |
218 | 219 |
return this.dataType; |
219 | 220 |
} |
220 | 221 |
|
222 |
public FeatureAttributeDescriptor setDataType(int type) { |
|
223 |
this.dataType = ToolsLocator.getDataTypesManager().get(type); |
|
224 |
return this; |
|
225 |
} |
|
226 |
|
|
221 | 227 |
@Override |
222 | 228 |
public DateFormat getDateFormat() { |
223 | 229 |
return this.dateFormat; |
... | ... | |
284 | 290 |
public String getName() { |
285 | 291 |
return this.name; |
286 | 292 |
} |
287 |
|
|
293 |
|
|
294 |
public FeatureAttributeDescriptor setName(String name) { |
|
295 |
this.name = name; |
|
296 |
return this; |
|
297 |
} |
|
298 |
|
|
288 | 299 |
@Override |
289 | 300 |
public Class getObjectClass() { |
290 | 301 |
if (getDataType().getType() == DataTypes.OBJECT) { |
... | ... | |
806 | 817 |
return this.featureAttributeEmulator; |
807 | 818 |
} |
808 | 819 |
|
820 |
public FeatureAttributeDescriptor setFeatureAttributeEmulator(FeatureAttributeEmulator featureAttributeEmulator) { |
|
821 |
this.featureAttributeEmulator = featureAttributeEmulator; |
|
822 |
return this; |
|
823 |
} |
|
824 |
|
|
809 | 825 |
@Override |
810 | 826 |
public boolean isIndexed() { |
811 | 827 |
return this.indexed; |
Also available in: Unified diff