jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Perez" <mper...@gmail.com>
Subject Re: Multivalue or single?
Date Mon, 19 Jun 2006 21:56:02 GMT
The only solution to your problem would be to have some metadata info about
them, and so you could look if the property was single or multivalued.

Obviously the real problem is how to find if a property is single/multiple
if such property does not exist so I cannot agree more with Jukka. Having a
getPropertyDefinition method would be really nice.


On 6/19/06, Jukka Zitting <jukka.zitting@gmail.com> wrote:
> Hi,
> On 6/20/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?
> Good question. Perhaps we should add something like a
> getPropertyDefinition(String name) method to a JackrabbitNode
> extension interface. This might also be a good suggestion to JSR 283
> unless someone has a better idea.
> BR,
> Jukka Zitting
> --
> Yukatan - http://yukatan.fi/ - info@yukatan.fi
> Software craftsmanship, JCR consulting, and Java development

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message