Re: Multivalue or single?

2006-06-20 Thread Marcel Reutegger
On 6/19/06, David Kennedy [EMAIL PROTECTED] 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: NodeType nt =

Re: Multivalue or single?

2006-06-20 Thread Jukka Zitting
Hi, On 6/20/06, Marcel Reutegger [EMAIL PROTECTED] wrote: On 6/19/06, David Kennedy [EMAIL PROTECTED] 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

Multivalue or single?

2006-06-19 Thread David Kennedy
efficient. What's the recommended way to determine whether to use the multivalue or single value setProperty method? David

Re: Multivalue or single?

2006-06-19 Thread Martin Perez
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