|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TypeEntry
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 | |
---|---|
FeatureSource<SimpleFeatureType,SimpleFeature> |
createFeatureSource()
Create a new FeatueSource allowing interaction with content. |
boolean |
equals(Object obj)
Equals based only on resource definition information (not connection information). |
void |
fireAdded(SimpleFeature newFeature,
Transaction transaction)
Change notifcation |
void |
fireChanged(SimpleFeature before,
SimpleFeature after,
Transaction transaction)
Change notifcation |
void |
fireRemoved(SimpleFeature removedFeature,
Transaction transaction)
Change notifcation |
InternationalString |
getDescription()
|
InternationalString |
getDisplayName()
|
SimpleFeatureType |
getFeatureType()
|
int |
hashCode()
This hashcode is *VERY* important! |
Method Detail |
---|
InternationalString getDisplayName()
InternationalString getDescription()
SimpleFeatureType getFeatureType() throws IOException
IOException
- If resoruce is unavailableFeatureSource<SimpleFeatureType,SimpleFeature> createFeatureSource() throws IOException
Subclass may optionally implement:
Several default implemenations are provided
IOException
void fireAdded(SimpleFeature newFeature, Transaction transaction)
newFeature
- transaction
- void fireRemoved(SimpleFeature removedFeature, Transaction transaction)
removedFeature
- transaction
- void fireChanged(SimpleFeature before, SimpleFeature after, Transaction transaction)
before
- after
- transaction
- boolean equals(Object obj)
obj
-
Object.equals(java.lang.Object)
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 |