Just to make it more concrete, I'm looking to parse something like:

  | <property name="whatever">
  |     <collection>
  |           <value>SomeValue</value>
  |           <list>
  |                <dependency value="xxx"/>
  |           </list>
  |      </collection>
  | </property>
  | 
  | into 
  | <property>
  | PropertyMetaData pmd = new PropertyMetaData();
  |     <collection>
  | CollectionMetaData cmd = new CollectionMetaData();
  |           <value>SomeValue</value>
  | StringValueMetaData smd = new StringValueMetaData();
  | smd.setValue("SomeValue");
  | cmd.add(smd);
  |           <list>
  | ListValueMetaData lmd = new ListValueMetaData();
  |                <dependency value="xxx"/>
  | DependencyValueMetaData dvmd = new DependencyValueMetaData();
  | dvmd.setValue("xxx");
  | lmd.add(dvmd);
  | cmd.add(lmd);
  | pmd.setValue(cmd);
  | 

but property could easily be replaced with parameter/ParameterMetaData
that needs to do the exactly same thing on its setValue().

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3870459#3870459

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3870459


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to