|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.feature.collection.FeatureState org.geotools.feature.collection.BaseFeatureState
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.
Field Summary |
Fields inherited from class org.geotools.feature.collection.FeatureState |
bounds, data |
Constructor Summary | |
BaseFeatureState(ResourceCollection collection,
FeatureType schema)
|
|
BaseFeatureState(ResourceCollection collection,
FeatureType featureType,
FeatureType schema)
|
Method Summary | |
void |
addListener(CollectionListener listener)
Adds a listener for collection events. |
static FeatureType |
featureType(FeatureType schema)
Construct a fake FeatureType of this FeatureCollection. |
protected void |
fireChange(java.util.Collection coll,
int type)
|
protected void |
fireChange(Feature[] features,
int type)
To let listeners know that something has changed. |
protected void |
fireChange(Feature feature,
int type)
|
FeatureType |
getChildFeatureType()
|
FeatureType |
getFeatureType()
|
java.lang.String |
getId()
|
void |
removeListener(CollectionListener listener)
Removes a listener for collection events. |
void |
setId(java.lang.String id)
|
Methods inherited from class org.geotools.feature.collection.FeatureState |
fids, getAttribute, getAttribute, getAttributes, getBounds, getDefaultGeometry, getNumberOfAttributes, getParent, isFeatures, setAttribute, setAttribute, setDefaultGeometry, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BaseFeatureState(ResourceCollection collection, FeatureType schema)
public BaseFeatureState(ResourceCollection collection, FeatureType featureType, FeatureType schema)
Method Detail |
public static FeatureType featureType(FeatureType schema)
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:
public void addListener(CollectionListener listener)
addListener
in class FeatureState
listener
- The listener to addpublic void removeListener(CollectionListener listener)
removeListener
in class FeatureState
listener
- The listener to removeprotected void fireChange(Feature[] features, int type)
fireChange
in class FeatureState
protected void fireChange(Feature feature, int type)
fireChange
in class FeatureState
protected void fireChange(java.util.Collection coll, int type)
fireChange
in class FeatureState
public FeatureType getFeatureType()
getFeatureType
in class FeatureState
public FeatureType getChildFeatureType()
getChildFeatureType
in class FeatureState
public java.lang.String getId()
getId
in class FeatureState
public void setId(java.lang.String id)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |