jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tobias Bocanegra" <tobias.bocane...@day.com>
Subject Re: Multivalue or single?
Date Tue, 20 Jun 2006 12:25:50 GMT
i think this is only a theoretical problem. usualy the application
knows with what kind of properties it deals.

regards, toby

On 6/20/06, Jukka Zitting <jukka.zitting@gmail.com> wrote:
> Hi,
>
> On 6/20/06, Marcel Reutegger <marcel.reutegger@day.com> wrote:
> > On 6/19/06, David Kennedy <davek@us.ibm.com> wrote:
> > > If I have a node, the name of a property and a single value, how can I
> > > determine if I need to add the value to an array and use the multivalue
> > > setter or not?
> >
> > You'll have to ask the NodeType of the node:
>
> The difficulty lies in the fact that the property could be specified
> either in the primary type or in one of the mixin types. Iterating
> through them is a bit cumbersome and error-prone.
>
> BR,
>
> Jukka Zitting
>
> --
> Yukatan - http://yukatan.fi/ - info@yukatan.fi
> Software craftsmanship, JCR consulting, and Java development
>


-- 
-----------------------------------------< tobias.bocanegra@day.com >---
Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97
-----------------------------------------------< http://www.day.com >---

Mime
View raw message