| java.lang.Object org.geotools.feature.collection.FeatureState org.geotools.feature.collection.BaseFeatureState
BaseFeatureState | public class BaseFeatureState extends FeatureState (Code) | | This is *not* a Feature - it is a Delegate used by FeatureCollection
implementations as "mix-in", provides implementation of featureCollection
events, featureType, and attribute access.
To use cut&paste the following code exactly:
On the bright side this means we can "fix" all the FeatureCollection implementations
in one fell-swoop.
author: Jody Garnett, Refractions Reserach, Inc. since: GeoTools 2.2 |
addListener | public void addListener(CollectionListener listener)(Code) | | Adds a listener for collection events.
Parameters: listener - The listener to add |
featureType | public static FeatureType featureType(FeatureType schema)(Code) | | Construct a fake FeatureType of this FeatureCollection.
Unless a FeatureType was provided during consturction (or this method is
overriden) a FeatureType will be generated based on getSchmea according
to the following assumptions:
- FeatureType is gml:AbstractFeatureCollectionType
- first attribute is getSchema.typeName
- the attribute FeatureType the same as returned by getSchema()
|
fireChange | protected void fireChange(Feature[] features, int type)(Code) | | To let listeners know that something has changed.
|
fireChange | protected void fireChange(Feature feature, int type)(Code) | | |
removeListener | public void removeListener(CollectionListener listener)(Code) | | Removes a listener for collection events.
Parameters: listener - The listener to remove |
|
|