|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Deprecated public interface FeatureStore
Gives a normalized interface to a data provider that can serve up collections
of Feature
objects.
Method Summary | |
---|---|
void |
addFeatureStoreListener(FeatureStoreListener listener)
Deprecated. Adds a listener object whose methods will be invoked whenever a new feature type is added, a feature type is deleted, or a feature type's schema has been modified. |
void |
createType(FeatureType type)
Deprecated. Creates a new type. |
FeatureStyle |
getDefaultStyle(GenericName type)
Deprecated. If the feature store wants to provide a default style for the given type, it may return something here. |
InternationalString |
getDescription()
Deprecated. Description of this feature store. |
InternationalString |
getDisplayName()
Deprecated. Display name for this feature store. |
FeatureCollection |
getFeatures(GenericName type)
Deprecated. Gets all features of the given type. |
FeatureCollection |
getFeatures(GenericName type,
Filter filter)
Deprecated. Gets all features of the given type that pass some filter. |
FeatureCollection |
getFeatures(Query query)
Deprecated. Gets features of the given type that pass some query. |
FeatureCollection |
getFeatures(Query q,
Transaction t)
Deprecated. Shortcut for calling getFeatures(q) then
calling setTransaction(t)
on the result. |
FeatureType |
getFeatureType(GenericName typeName)
Deprecated. Returns the schema of the named feature type. |
URI |
getIcon()
Deprecated. Icon representing this FeatureStore . |
List<GenericName> |
getRootTypeNames()
Deprecated. This method is similar to the getTypeNames() method,
except that it acknowledges that some features only make sense as
children of another feature collection type. |
List<GenericName> |
getTypeNames()
Deprecated. Gets a list of all the names of the types held in this feature store. |
void |
modifyType(FeatureType type)
Deprecated. Modifies the type by changing the schema to what is passed as a parameter. |
void |
registerFeatureCollection(FeatureCollection featureCollection,
GenericName type)
Deprecated. Registers the given feature collection so that it may hear any adds, removes, or updates of Feature s of the given type . |
void |
registerFeatureCollection(FeatureCollection featureCollection,
GenericName type,
Filter filter)
Deprecated. Registers the given feature collection so that it may hear any adds, removes, or updates of Feature s of the given
type that meet the given filter . |
void |
registerFeatureCollection(FeatureCollection featureCollection,
Query query)
Deprecated. Registers the given feature collection so that it may hear any adds, removes, or updates of Feature s of the given
type that meet the given filter . |
void |
removeFeatureStoreListener(FeatureStoreListener listener)
Deprecated. Removes a listener that was previously added using the addFeatureStoreListener method. |
void |
removeType(GenericName type)
Deprecated. Completely removes all the features of the given type and removes the type itself. |
void |
unregisterFeatureCollection(FeatureCollection featureCollection)
Deprecated. Unregisters the given feature collection so that it will no longer hear any adds, removes, or updates of Feature s for
which it had previously registered. |
Method Detail |
---|
URI getIcon()
FeatureStore
.
InternationalString getDisplayName()
InternationalString getDescription()
List<GenericName> getTypeNames()
toString()
gives the URI of an XML namespace.
List<GenericName> getRootTypeNames()
getTypeNames()
method,
except that it acknowledges that some features only make sense as
children of another feature collection type. So this method returns the
types that are the root level "parent" types that can be retrieved from
this store. Implementors are free to return the same values from this
method as from getTypeNames()
.
FeatureType getFeatureType(GenericName typeName)
GenericName
passed to this
method must be equal to one of the elements in the list returned by the
getTypeNames()
method.
FeatureCollection getFeatures(GenericName type) throws IOException
IOException
- if an error occurs while reading the backing store. If the cause is
not a standard I/O exception, it may be wrapped in a FeatureStoreException
.FeatureCollection getFeatures(GenericName type, Filter filter) throws IOException
IOException
- if an error occurs while reading the backing store. If the cause is
not a standard I/O exception, it may be wrapped in a FeatureStoreException
.FeatureCollection getFeatures(Query query) throws IOException
IOException
- if an error occurs while reading the backing store. If the cause is
not a standard I/O exception, it may be wrapped in a FeatureStoreException
.FeatureCollection getFeatures(Query q, Transaction t) throws IOException
getFeatures(q)
then
calling setTransaction(t)
on the result.
IOException
- if an error occurs while reading the backing store. If the cause is
not a standard I/O exception, it may be wrapped in a FeatureStoreException
.void registerFeatureCollection(FeatureCollection featureCollection, GenericName type)
Feature
s of the given type
.
featureCollection
- the feature collection to register.type
- the FeatureType
to listen for.void registerFeatureCollection(FeatureCollection featureCollection, GenericName type, Filter filter)
Feature
s of the given
type
that meet the given filter
.
featureCollection
- the feature collection to register.type
- the FeatureType
to register with.filter
- the filter to register with.void registerFeatureCollection(FeatureCollection featureCollection, Query query)
Feature
s of the given
type
that meet the given filter
.
featureCollection
- the feature collection to register.query
- the query to register with.void unregisterFeatureCollection(FeatureCollection featureCollection)
Feature
s for
which it had previously registered.
featureCollection
- the feature collection to unregister.FeatureStyle getDefaultStyle(GenericName type)
void createType(FeatureType type) throws UnsupportedOperationException, IllegalArgumentException, IOException
UnsupportedOperationException
- if the addition feature types is not supported.
IllegalArgumentException
- If a type of the given name already exists.
IllegalArgumentException
- If the given feature schema is somehow
incompatible with the persisten store that backs this feature store.
IOException
- if an error occurs while accessing the backing store. If the cause is
not a standard I/O exception, it may be wrapped in a FeatureStoreException
.void removeType(GenericName type) throws UnsupportedOperationException, IOException
UnsupportedOperationException
- if the removal of whole feature types is not supported.
IOException
- if an error occurs while accessing the backing store. If the cause is
not a standard I/O exception, it may be wrapped in a FeatureStoreException
.void modifyType(FeatureType type) throws UnsupportedOperationException, IOException
UnsupportedOperationException
- if the modification of types is not supported.
IOException
- if an error occurs while accessing the backing store. If the cause is
not a standard I/O exception, it may be wrapped in a FeatureStoreException
.void addFeatureStoreListener(FeatureStoreListener listener)
void removeFeatureStoreListener(FeatureStoreListener listener)
addFeatureStoreListener
method.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |