commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Mistroni" <mmistr...@waersystems.com>
Subject RE: [digester] create parent from child node value
Date Tue, 20 Dec 2005 17:02:21 GMT
Hello,
	I haven't used digester since some time (approx 1 year) , but I am
not 100% sure
That you can create Objects by passing parameters...

At least in all examples that I have seen, all JB that were going to be
Populated via Digester from XML had an empty constructor

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:valerio.schiavoni@gmail.com] 
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>
    <b>testB</b>
</a>

for any element 'a' a new object of type A must be istantiated, passing in
it's 1-param constructor the value testB.
Is this possible?

thanks,
 valerio

--
To Iterate is Human, to Recurse, Divine
James O. Coplien, Bell Labs


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message