How is this any different from options again?
General approach is to try out keys as needed, add a static final if a key
is used in more than one place and needs a jacadoc, add a utitily method
for key lookup and parsing if the key is wildly successful and you can save
developers duplicating code.
Would you add domain and deprecate options? I think we used options in
order to mirror user interface conventions for a choice input.
On Friday, May 23, 2014, Andrea Aime <andrea.a...@geo-solutions.it> wrote:
> Hi,
> recently in GeoServer we discussed how to advertise a list of possible
> values for an input parmeter in a pyhon scripted process.
>
> The chosen keyword there has been "domain", and when present, it
> fills the Parameter metadata using the OPTIONS key.
>
> Now, I would like to add something similar for the process annotations,
> just to make sure we can align the two and tests (even if the preferred
> way for a fixed list of options would be to use an enum, this is
> just an extra possibility and helps writing tests)
>
> So, would you mind an extra:
> domain = {"a", "b", "c")
> in the DescribeParameter annotation?
>
> Cheers
> Andrea
>
> --
> ==
> Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
> for more information.
> ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054 Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39 339 8844549
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
--
Jody Garnett
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel