root / branches / v2_0_0_prep / libraries / libFMap_dal / src / org / gvsig / fmap / dal / feature / FeatureReference.java @ 38533
History | View | Annotate | Download (971 Bytes)
1 | 24496 | jmvivo | package org.gvsig.fmap.dal.feature; |
---|---|---|---|
2 | 19399 | vcaballero | |
3 | 24505 | jmvivo | import org.gvsig.fmap.dal.exception.DataException; |
4 | 19399 | vcaballero | |
5 | 25263 | jiyarza | /**
|
6 | 25810 | jiyarza | * A FeatureReference is a lightweight unique identifier for a
|
7 | * {@link Feature}. It is used to keep references on features
|
||
8 | * without maintaining the whole feature in memory, thus improving
|
||
9 | * memory needs.
|
||
10 | 25798 | jmvivo | *
|
11 | 25263 | jiyarza | */
|
12 | 23842 | jjdelcerro | public interface FeatureReference { |
13 | 19399 | vcaballero | |
14 | 25263 | jiyarza | /**
|
15 | * Returns the referenced {@link Feature}
|
||
16 | *
|
||
17 | 25798 | jmvivo | * @return the {@link Feature} identified by this {@link FeatureReference}
|
18 | 25263 | jiyarza | *
|
19 | * @throws DataException
|
||
20 | */
|
||
21 | 23872 | jjdelcerro | public Feature getFeature() throws DataException; |
22 | 25798 | jmvivo | |
23 | 25263 | jiyarza | /**
|
24 | * Returns the referenced {@link Feature}
|
||
25 | *
|
||
26 | * @param featureType
|
||
27 | 25798 | jmvivo | * The {@link FeatureType} to which the referenced
|
28 | * {@link Feature} belongs.
|
||
29 | 25263 | jiyarza | *
|
30 | 25798 | jmvivo | * @return the {@link Feature} identified by this {@link FeatureReference}
|
31 | *
|
||
32 | 25263 | jiyarza | * @throws DataException
|
33 | */
|
||
34 | 23820 | jjdelcerro | public Feature getFeature(FeatureType featureType) throws DataException; |
35 | 19399 | vcaballero | } |