commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Valerio Schiavoni <>
Subject [digester] setter methods named by element attributes values
Date Thu, 09 Feb 2006 17:44:30 GMT
this is the input  xml:
      <metadata name="title">the title</metadata>
      <metadata name="content">the content</metadata>
      <metadata name='someUknownName'>...</metadata>

in the


And here comes comes the problems:
--how to call notizia.setTitle("the title"); ?
--how to call notizia.setContent("the content"); ?
--how to call notizia.setUnknownValue("..."); ?

Notizia does provide all necessary setters.

the values of name attributes can vary greatly, so I need a general way to
invoke setter methods, retriving the name of the setter method to be invoked
by looking at the value of the attribute.

thanks to everyone,

To Iterate is Human, to Recurse, Divine
James O. Coplien, Bell Labs
(how good is to be human indeed)

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