Revision 34624 branches/dal_time_support/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/impl/DefaultFeature.java
DefaultFeature.java | ||
---|---|---|
23 | 23 |
import org.gvsig.fmap.geom.primitive.Envelope; |
24 | 24 |
import org.gvsig.timesupport.Instant; |
25 | 25 |
import org.gvsig.timesupport.Interval; |
26 |
import org.gvsig.timesupport.Partial;
|
|
27 |
import org.gvsig.timesupport.Period;
|
|
26 |
import org.gvsig.timesupport.RelativeInstant;
|
|
27 |
import org.gvsig.timesupport.RelativeInterval;
|
|
28 | 28 |
import org.gvsig.tools.evaluator.Evaluator; |
29 | 29 |
import org.gvsig.tools.evaluator.EvaluatorData; |
30 | 30 |
import org.gvsig.tools.evaluator.EvaluatorException; |
... | ... | |
483 | 483 |
} |
484 | 484 |
|
485 | 485 |
public Instant getTimeInstant(int index) { |
486 |
return (Instant) this.get(index); |
|
486 |
return (RelativeInstant) this.get(index);
|
|
487 | 487 |
} |
488 | 488 |
|
489 | 489 |
public Instant getTimeInstant(String name) { |
490 |
return (Instant) this.get(this.data.getType().getIndex(name)); |
|
490 |
return (RelativeInstant) this.get(this.data.getType().getIndex(name));
|
|
491 | 491 |
} |
492 | 492 |
|
493 |
public Partial getTimePartial(int index) { |
|
494 |
return (Partial) this.get(index); |
|
495 |
} |
|
496 |
|
|
497 |
public Partial getTimePartial(String name) { |
|
498 |
return (Partial) this.get(this.data.getType().getIndex(name)); |
|
499 |
} |
|
500 |
|
|
501 | 493 |
public Interval getTimeInterval(int index) { |
502 |
return (Interval) this.get(index); |
|
494 |
return (RelativeInterval) this.get(index);
|
|
503 | 495 |
} |
504 | 496 |
|
505 | 497 |
public Interval getTimeInterval(String name) { |
506 |
return (Interval) this.get(this.data.getType().getIndex(name)); |
|
498 |
return (RelativeInterval) this.get(this.data.getType().getIndex(name));
|
|
507 | 499 |
} |
508 |
|
|
509 |
public Period getTimePeriod(int index) { |
|
510 |
return (Period) this.get(index); |
|
511 |
} |
|
512 |
|
|
513 |
public Period getTimePeriod(String name) { |
|
514 |
return (Period) this.get(this.data.getType().getIndex(name)); |
|
515 |
} |
|
516 | 500 |
} |
Also available in: Unified diff