|
|||||||||||
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()
CatalogEntry
CatalogEntry
describes a resource, this method provides access to that
resource.
resource
in interface CatalogEntry
CatalogEntry
.public FeatureSource getFeatureSource() throws java.io.IOException
getFeatureSource
in interface TypeEntry
java.io.IOException
TypeEntry.getFeatureSource()
public FeatureType getFeatureType() throws java.io.IOException
getFeatureType
in interface TypeEntry
java.io.IOException
TypeEntry.getFeatureType()
public java.util.Map metadata()
metadata
in interface CatalogEntry
CatalogEntry.metadata()
protected java.util.Map createMetadata()
By default returns an empty Map
public java.lang.String[] getMetadataNames()
getMetadataNames
in interface CatalogEntry
CatalogEntry.getMetadataNames()
public boolean equals(java.lang.Object obj)
TypeEntry
equals
in interface TypeEntry
public int hashCode()
hashCode
in interface TypeEntry
public void reset()
public org.opengis.util.InternationalString getDisplayName()
getDisplayName
in interface TypeEntry
public java.lang.String getDataName()
getDataName
in interface CatalogEntry
public org.opengis.util.InternationalString getDescription()
getDescription
in interface TypeEntry
public 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 TypeEntry
protected 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 TypeEntry
newFeature
- transaction
- TypeEntry.fireAdded(org.geotools.feature.Feature, org.geotools.data.Transaction)
public void fireChanged(Feature before, Feature after, Transaction transaction)
fireChanged
in interface TypeEntry
before
- 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 TypeEntry
removedFeature
- 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 |