commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Blom <steve_blom2...@yahoo.com>
Subject [digester] Setting same object within parent
Date Tue, 09 Nov 2004 06:01:14 GMT
Hi all,
How can i do a recursive set where one object contains
many of the same object that can go any number of
levels down?
class Person{
  String name;
  List personList = new ArrayList();

  public void addPerson(Person p){
    personList.add(p);
  }
<root>
  <person name="bob">
    <person name="joe"/>
    <person name="sue">
      <person name="billy">
        ...
      </person>
    </person
  </person>
</root>

Thanks so much,
Steve


		
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


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