|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.data.DefaultTypeEntry
Default impelmentation of TypeEntry.
This implemenation is entirely dependent on the DataStore api, it does cache values and listen to events.
For an alternative take see data.store.*, AbstractDataStore2 is entirly dependendent on TypeEntry_GT.
| Constructor Summary | |
DefaultTypeEntry(DataStore store,
java.net.URI namespace,
java.lang.String typeName)
|
|
| Method Summary | |
protected com.vividsolutions.jts.geom.Envelope |
createBounds()
Override to provide your own optimized calculation of bbox. |
protected java.util.Map |
createMetadata()
Lazy creatation of metdata, subclass overrride recomended. |
boolean |
equals(java.lang.Object obj)
Equals based only on resource definition information (not connection information). |
void |
fireAdded(Feature newFeature,
Transaction transaction)
TODO summary sentence for fireAdded ... |
void |
fireChanged(Feature before,
Feature after,
Transaction transaction)
TODO summary sentence for fireChanged ... |
void |
fireRemoved(Feature removedFeature,
Transaction transaction)
TODO summary sentence for fireRemoved ... |
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 |
java.lang.String |
getDataName()
namespace:typename |
org.opengis.util.InternationalString |
getDescription()
|
org.opengis.util.InternationalString |
getDisplayName()
|
FeatureSource |
getFeatureSource()
Aquire featuresource |
FeatureType |
getFeatureType()
Aquire featureType. |
java.lang.String[] |
getMetadataNames()
Quick access to metadata.keySet. |
java.net.URI |
getNamespace()
|
java.lang.String |
getTypeName()
|
int |
hashCode()
Hashcode based on typename, uri and store. |
java.util.Map |
metadata()
Access to map of metadata by name. |
void |
reset()
Called to reset the count and bounds, they will be recalculated as needed |
java.lang.Object |
resource()
Each CatalogEntry describes a resource, this method provides access to that
resource. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultTypeEntry(DataStore store,
java.net.URI namespace,
java.lang.String typeName)
| Method Detail |
public java.lang.Object resource()
CatalogEntryCatalogEntry describes a resource, this method provides access to that
resource.
resource in interface CatalogEntryCatalogEntry.
public FeatureSource getFeatureSource()
throws java.io.IOException
getFeatureSource in interface TypeEntryjava.io.IOExceptionTypeEntry.getFeatureSource()
public FeatureType getFeatureType()
throws java.io.IOException
getFeatureType in interface TypeEntryjava.io.IOExceptionTypeEntry.getFeatureType()public java.util.Map metadata()
metadata in interface CatalogEntryCatalogEntry.metadata()protected java.util.Map createMetadata()
By default returns an empty Map
public java.lang.String[] getMetadataNames()
getMetadataNames in interface CatalogEntryCatalogEntry.getMetadataNames()public boolean equals(java.lang.Object obj)
TypeEntry
equals in interface TypeEntrypublic int hashCode()
hashCode in interface TypeEntrypublic void reset()
public org.opengis.util.InternationalString getDisplayName()
getDisplayName in interface TypeEntrypublic java.lang.String getDataName()
getDataName in interface CatalogEntrypublic org.opengis.util.InternationalString getDescription()
getDescription in interface TypeEntrypublic java.net.URI getNamespace()
public java.lang.String getTypeName()
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.
getBounds in interface TypeEntryprotected com.vividsolutions.jts.geom.Envelope createBounds()
Default impelmenation uses the a feature source.
public int getCount()
getCount in interface TypeEntry
public void fireAdded(Feature newFeature,
Transaction transaction)
fireAdded in interface TypeEntrynewFeature - transaction - TypeEntry.fireAdded(org.geotools.feature.Feature, org.geotools.data.Transaction)
public void fireChanged(Feature before,
Feature after,
Transaction transaction)
fireChanged in interface TypeEntrybefore - after - transaction - TypeEntry.fireChanged(org.geotools.feature.Feature, org.geotools.feature.Feature, org.geotools.data.Transaction)
public void fireRemoved(Feature removedFeature,
Transaction transaction)
fireRemoved in interface TypeEntryremovedFeature - transaction - TypeEntry.fireRemoved(org.geotools.feature.Feature, org.geotools.data.Transaction)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||