Re: [Geotools-devel] Process parameter default values and annotations

2012-08-16 Thread Andrea Aime
On Wed, Aug 15, 2012 at 3:52 AM, Jody Garnett wrote: > Sounds great ! > > My email suggested doing "class name.field" as well as converters. I think > you could get away with making that a converter for the same effect. > Ok, work committed on trunk. The usage of defaults is documented in the Des

Re: [Geotools-devel] Process parameter default values and annotations

2012-08-14 Thread Jody Garnett
Sounds great ! My email suggested doing "class name.field" as well as converters. I think you could get away with making that a converter for the same effect. Give it a go. -- Jody Garnett On 15/08/2012, at 4:05 AM, Andrea Aime wrote: On Tue, Aug 14, 2012 at 10:23 AM, Andrea Aime wrote: > No

Re: [Geotools-devel] Process parameter default values and annotations

2012-08-14 Thread Andrea Aime
On Tue, Aug 14, 2012 at 10:23 AM, Andrea Aime wrote: > Non trivial processes tend to have complex input parameters, beans instead > of common "primitives" > (to be interpreted in a lax way, e.g., Date as a primitive too), such as > ranges, lists of values. > > I'm tempted to just go the way to sug

Re: [Geotools-devel] Process parameter default values and annotations

2012-08-14 Thread Andrea Aime
On Tue, Aug 14, 2012 at 1:53 AM, Jody Garnett wrote: > I thought we had covered this one already? i.e. the fact it was a solid > limitation of what annotations can do. > I don't remember we did, but that's not a problem > > However we may be working a bit too hard.. > > For most basic types (a

Re: [Geotools-devel] Process parameter default values and annotations

2012-08-13 Thread Jody Garnett
I thought we had covered this one already? i.e. the fact it was a solid limitation of what annotations can do. However we may be working a bit too hard.. For most basic types (and quite a few others) we have enough information to run our Converters - String value provided by annotation - Targe

Re: [Geotools-devel] Process parameter default values and annotations

2012-08-13 Thread Andrea Aime
On Mon, Aug 13, 2012 at 3:00 PM, Justin Deoliveira wrote: > > > On Mon, Aug 13, 2012 at 6:21 AM, Andrea Aime > wrote: > >> Hi, >> I was looking into ways to get the default values for process parameters >> in the annotations >> and found out that it's not possible, because an annotation parameter

Re: [Geotools-devel] Process parameter default values and annotations

2012-08-13 Thread Justin Deoliveira
On Mon, Aug 13, 2012 at 6:21 AM, Andrea Aime wrote: > Hi, > I was looking into ways to get the default values for process parameters > in the annotations > and found out that it's not possible, because an annotation parameter can > only > be a Class, primitive, String or an array of those... > Bum

[Geotools-devel] Process parameter default values and annotations

2012-08-13 Thread Andrea Aime
Hi, I was looking into ways to get the default values for process parameters in the annotations and found out that it's not possible, because an annotation parameter can only be a Class, primitive, String or an array of those... Bummer! Maybe a way to get default values anyways could be to annotat