Package org.gvsig.fmap.dal.feature
Interface FeatureReference
- All Superinterfaces:
org.gvsig.json.SupportToJson
public interface FeatureReference
extends org.gvsig.json.SupportToJson
A FeatureReference is a lightweight unique identifier for a
Feature. It is used to keep references on features
without maintaining the whole feature in memory, thus improving
memory needs.-
Method Summary
Modifier and TypeMethodDescriptiongetCode()Returns the referencedFeaturegetFeature(FeatureType featureType) Returns the referencedFeaturebooleanInform that represented feature is not stored in the original data storeMethods inherited from interface org.gvsig.json.SupportToJson
toJson, toJson, toJsonBuilder, toJsonBuilder
-
Method Details
-
getFeature
Returns the referencedFeature- Returns:
- the
Featureidentified by thisFeatureReference - Throws:
DataException
-
getFeatureQuietly
Feature getFeatureQuietly() -
getFeature
Returns the referencedFeature- Parameters:
featureType- TheFeatureTypeto which the referencedFeaturebelongs.- Returns:
- the
Featureidentified by thisFeatureReference - Throws:
DataException
-
isNewFeature
boolean isNewFeature()Inform that represented feature is not stored in the original data store- Returns:
- true if not in the original store
-
getCode
String getCode()
-