Re: [digester] create parent from child node value

2005-12-21 Thread robert burrell donkin
On Tue, 2005-12-20 at 18:10 +0100, Valerio Schiavoni wrote: Hello Marco, i've already considered that option, but it looks quite poor design to provide so many setXXX methods on objects that will be initialized once and forever. Further, there are no restrictions to call those set methods

Re: [digester] create parent from child node value

2005-12-21 Thread Valerio Schiavoni
Hello Robert, thanks for your answer, digester can do what you want but AFAIK there is no standard rule suitable for your exact problem (if anyone knows of one, please jump in). I looked for materials about writing custom rules: do you have some links about the topic so that I can think about

Re: [digester] create parent from child node value

2005-12-21 Thread Simon Kitching
On Wed, 2005-12-21 at 09:32 +, robert burrell donkin wrote: On Tue, 2005-12-20 at 18:10 +0100, Valerio Schiavoni wrote: What I mean is: how can I istantiate 'immutable' objects that requires values in their constructors ? None of the examples I found illustrate this situation, so

Digester: create parent from child node value

2005-12-20 Thread Valerio Schiavoni
Hello, i'm using digester to parse this kind ofxml: parameters type=RenameRelationOperatorParameter paramnewName/param /parameters there are different kind of types. Now, the value of the parameters should be used on the 1-arg constructor for objects of type RenameRelationOperatorParameter.

Re: Digester: create parent from child node value

2005-12-20 Thread Valerio Schiavoni
Hello, this is my first post to the commons ml, thanks for the support. i'm willing to use digester to parse this kind ofxml: parameters type=RenameRelationOperatorParameter paramnewName/param /parameters there could be different kind of type values. Now, the value of the parameters

RE: [digester] create parent from child node value

2005-12-20 Thread Marco Mistroni
Will it be an option to use an empty constructor and call a setXX method On your objects? Regards marco -Original Message- From: Valerio Schiavoni [mailto:[EMAIL PROTECTED] Sent: 20 December 2005 16:39 To: commons-user@jakarta.apache.org Subject: [digester] create parent from child node value

Re: [digester] create parent from child node value

2005-12-20 Thread Valerio Schiavoni
Schiavoni [mailto:[EMAIL PROTECTED] Sent: 20 December 2005 16:39 To: commons-user@jakarta.apache.org Subject: [digester] create parent from child node value Hello, say I have this simple xml: a btestB/b /a for any element 'a' a new object of type A must be istantiated, passing in it's 1