[jdom-interest] API Inertia

Elliotte Rusty Harold elharo at metalab.unc.edu
Wed May 2 06:33:16 PDT 2001


At 12:42 PM +0200 5/2/01, Noam Tamim wrote:

>What will Attribute.getChildren() return, null or an empty list?
>If it returns a List, then I can add() stuff to that list.
>


An empty list. We could easily make it throw an exception on any 
attempts to add to it.  Ditto for the lists returned by text nodes, 
comment nodes, etc.
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|                  The XML Bible (IDG Books, 1999)                   |
|              http://metalab.unc.edu/xml/books/bible/               |
|   http://www.amazon.com/exec/obidos/ISBN=0764532367/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://metalab.unc.edu/javafaq/ |
|  Read Cafe con Leche for XML News: http://metalab.unc.edu/xml/     |
+----------------------------------+---------------------------------+



More information about the jdom-interest mailing list