[jdom-interest] getChild() vs. getChildElements()

Elliotte Rusty Harold elharo at metalab.unc.edu
Tue Aug 1 05:33:19 PDT 2000

At 9:03 PM -0700 7/31/00, Jason Hunter wrote:

> And since we looked at the
>Collections APIs for whether to return null or not, let me point out
>they shortened the "addElement" name down to just "add".  :-)

However in the Collections API everything in a Vector/List/etc. is an 
element and element has a very generic meaning. It's not merely one 
of several different types that may appear in the collection. The 
analogy doesn't hold. In the context of the Collections API the word 
"Element" more closely maps to the word "Child" in an XML context.

| 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