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 |
package org.gvsig.fmap.dal.feature; |
---|---|
2 |
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
4 |
|
5 |
/**
|
6 |
* 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 |
*
|
11 |
*/
|
12 |
public interface FeatureReference { |
13 |
|
14 |
/**
|
15 |
* Returns the referenced {@link Feature}
|
16 |
*
|
17 |
* @return the {@link Feature} identified by this {@link FeatureReference}
|
18 |
*
|
19 |
* @throws DataException
|
20 |
*/
|
21 |
public Feature getFeature() throws DataException; |
22 |
|
23 |
/**
|
24 |
* Returns the referenced {@link Feature}
|
25 |
*
|
26 |
* @param featureType
|
27 |
* The {@link FeatureType} to which the referenced
|
28 |
* {@link Feature} belongs.
|
29 |
*
|
30 |
* @return the {@link Feature} identified by this {@link FeatureReference}
|
31 |
*
|
32 |
* @throws DataException
|
33 |
*/
|
34 |
public Feature getFeature(FeatureType featureType) throws DataException; |
35 |
} |