Justin Deoliveira wrote:
I am trying to build a ui to capture the paramters to a datastore. A nice feature would be for a paramter to specify whats its allowable values are,

For instance, the indexed shapefile data store contains a paramter that specifies what type of index to create: rtree, quadtree, etc.. However based on the paramter itself, there is no way to infer that these are the allowable values.

So i guess my idea is to add a method to DataStoreFactorySpi.Param that would look like this;

List getAllowableValues() {
    return null;
}

with the default implementation just returning null but allowing subclasses to override if need be. Not sure if this one will be a big hit, I thought I would throw it out there anyways.
Yeah - this is why I put so much time into the ParameterGroup stuff used by GCE and CRS. It has some of these problems solved, but is still very difficult.

One of the best ideas was to go straight to a Java Bean configuration object, problem is Java BeanInfo classes do not play nice with localization (witness the crazy hacking to change locale for the validation configuration section in geoserver).

I still am fond of the parameter model used by ISO 19119, see diagrams in this document:
-<http://udig.refractions.net/docs/WRS.pdf>

I would also remind you of the difference between identification, and configuration. It could be that you should make the DataStore based on the URL, and then have an API to configure the Datastore for your specific application. Although truth be told that should probably occur on a FeatureSource by FeatureSource basis so that different threads can do what is right for them ...

Jody


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to