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/DefaultFeatureAttributeDescriptor.java

View differences:

DefaultFeatureAttributeDescriptor.java
34 34
import org.gvsig.fmap.crs.CRSFactory;
35 35
import org.gvsig.fmap.dal.DataStore;
36 36
import org.gvsig.fmap.dal.DataTypes;
37
import org.gvsig.fmap.dal.feature.EditableFeatureAttributeDescriptor;
37 38
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor;
38 39
import org.gvsig.fmap.dal.feature.FeatureAttributeEmulator;
39 40
import org.gvsig.fmap.dal.feature.FeatureAttributeGetter;
......
1045 1046
        }
1046 1047
        return (FeatureType) this.typeRef.get();
1047 1048
    }
1049

  
1050
    public FeatureAttributeDescriptor setInterval(Interval interval) {
1051
        this.interval = interval;
1052
        return this;
1053
    }
1054

  
1055
    public void fixAll() {
1056
        switch(this.getType()) {
1057
            case DataTypes.INSTANT:
1058
            case DataTypes.INTERVAL:
1059
            case DataTypes.DATE:
1060
                if( this.getInterval()!=null ) {
1061
                    this.isTime = true;
1062
                }
1063
                break;
1064
        }
1065
    }
1066

  
1048 1067
}

Also available in: Unified diff