On Wed, Sep 26, 2012 at 3:22 PM, Victor Olaya <vol...@opengeo.org> wrote:
> > RELATE
> >
> > How to describe the nature of the relationship? Using strings below?
> Perhaps
> > best handled with ENUM.
> >
> > Parameter<Boolean> SNAPPING = new Parameter<Boolean>("snapping",
> > Boolean.class, "Enable Snapping", "True to enable snapping, requires use
> of
> > 'distance' parameter", true, 1, 1, new KVP( RELATED, "distance",
> > RELATIONSHIP, "requires" ) );
> > Parameter<Double> DISTANCE = new Parameter<Double>("distance",
> Double.class,
> > "Snapping Distance", "Snapping distance used, required when 'snapping'
> > parameter is True.", false, 0, 1, new KVP( RELATED, "snapping",
> > RELATIONSHIP, "enable") );
>
> Sounds great to me. I guess it's better to use an enum, instead of
> string, but the syntax of those examples is perfect from my point of
> view
>
Could we have more than one relationship? How do we handle it?
Would it be better to describe the relationships with a specific bean
stored in
the KVP?
Cheers
Andrea
--
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it 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
-------------------------------------------------------
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel