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
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
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
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.
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
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
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