|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Starting place for holding information about a FeatureType.
Like say for instance the FeatureType, its metadata and so on.
The default implemenation should contain enough information to wean us off of AbstractDataStore. That is it should provide its own locking and event notification.
There is a naming convention:
Feedback:
Method Summary | |
boolean |
equals(java.lang.Object obj)
Equals based only on resource definition information (not connection information). |
void |
fireAdded(Feature newFeature,
Transaction transaction)
|
void |
fireChanged(Feature before,
Feature after,
Transaction transaction)
|
void |
fireRemoved(Feature removedFeature,
Transaction transaction)
|
com.vividsolutions.jts.geom.Envelope |
getBounds()
Bounding box for associated Feature Collection, will be calcualted as needed. |
int |
getCount()
Number of features in associated Feature Collection, will be calcualted as needed |
org.opengis.util.InternationalString |
getDescription()
|
org.opengis.util.InternationalString |
getDisplayName()
|
FeatureSource |
getFeatureSource()
Create a new FeatueSource allowing interaction with content. |
FeatureType |
getFeatureType()
|
int |
hashCode()
This hashcode is *VERY* important! |
Methods inherited from interface org.geotools.catalog.CatalogEntry |
getDataName, getMetadataNames, metadata, resource |
Method Detail |
public org.opengis.util.InternationalString getDisplayName()
public org.opengis.util.InternationalString getDescription()
public FeatureType getFeatureType() throws java.io.IOException
java.io.IOException
public com.vividsolutions.jts.geom.Envelope getBounds()
Note bounding box is returned in lat/long - the coordinate system of the default geometry is used to provide this reprojection.
public int getCount()
public FeatureSource getFeatureSource() throws java.io.IOException
Subclass may optionally implement:
Several default implemenations are provided
java.io.IOException
public void fireAdded(Feature newFeature, Transaction transaction)
public void fireRemoved(Feature removedFeature, Transaction transaction)
public void fireChanged(Feature before, Feature after, Transaction transaction)
public boolean equals(java.lang.Object obj)
obj
-
Object.equals(java.lang.Object)
public int hashCode()
The hascode must be dependent only on the parameters that "define" the resource, not those that control opperation.
Implemetnation tip - URL.hashCode is a blocking operation, so you calculate and cache when the URL changes, rather than block this method.
Object.hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |