Revision 44094 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/DefaultEditableFeatureAttributeDescriptor.java
DefaultEditableFeatureAttributeDescriptor.java | ||
---|---|---|
28 | 28 |
import org.apache.commons.lang3.StringUtils; |
29 | 29 |
|
30 | 30 |
import org.cresques.cts.IProjection; |
31 |
import org.gvsig.fmap.dal.DataTypes; |
|
32 | 31 |
import org.slf4j.Logger; |
33 | 32 |
import org.slf4j.LoggerFactory; |
34 | 33 |
|
... | ... | |
50 | 49 |
private static Logger logger = LoggerFactory.getLogger( |
51 | 50 |
DefaultEditableFeatureAttributeDescriptor.class); |
52 | 51 |
|
53 |
private DefaultFeatureAttributeDescriptor source; |
|
52 |
private final DefaultFeatureAttributeDescriptor source;
|
|
54 | 53 |
private boolean hasStrongChanges; |
55 | 54 |
private String originalName = null; |
56 | 55 |
|
... | ... | |
77 | 76 |
public DefaultFeatureAttributeDescriptor getSource() { |
78 | 77 |
return this.source; |
79 | 78 |
} |
80 |
|
|
79 |
|
|
81 | 80 |
public void fixAll() { |
82 |
switch(this.getType()) { |
|
83 |
case DataTypes.INSTANT: |
|
84 |
case DataTypes.INTERVAL: |
|
85 |
case DataTypes.DATE: |
|
86 |
if( this.getInterval()!=null ) { |
|
87 |
this.isTime = true; |
|
88 |
} |
|
89 |
break; |
|
90 |
} |
|
81 |
super.fixAll(); |
|
91 | 82 |
} |
92 |
|
|
83 |
|
|
93 | 84 |
public void checkIntegrity() throws AttributeFeatureTypeIntegrityException { |
94 | 85 |
AttributeFeatureTypeIntegrityException ex = |
95 | 86 |
new AttributeFeatureTypeIntegrityException(getName()); |
... | ... | |
263 | 254 |
} |
264 | 255 |
|
265 | 256 |
public EditableFeatureAttributeDescriptor setInterval(Interval interval) { |
266 |
this.interval = interval;
|
|
257 |
super.setInterval(interval);
|
|
267 | 258 |
if (!isComputed()) { |
268 | 259 |
hasStrongChanges = true; |
269 | 260 |
} |
Also available in: Unified diff