Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] Element.add()

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • To: Laurent Bihanic <laurent.bihanic AT atosorigin.com>, XOM-interest <XOM-interest AT lists.ibiblio.org>
  • Subject: [XOM-interest] Element.add()
  • Date: Thu, 19 Sep 2002 11:08:10 -0400

At 10:33 AM +0200 9/19/02, Laurent Bihanic wrote:


- Element.add(): Why not addAttribute() as every other attribute- and child-related method names have suffixes (get/read/removeAttribute, append/insertChild, ...).


Mostly because I wanted to keep the name short. But maybe for consistency it should be addAttribute. On the other hand appendChild and insertChild could just be append and insert. On the gripping hand, the get and read and set methods really need the suffix because there's more than one thing clients might reasonably want to get. Thoughts?
--

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo AT metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| XML in a Nutshell, 2nd Edition (O'Reilly, 2002) |
| http://www.cafeconleche.org/books/xian2/ |
| http://www.amazon.com/exec/obidos/ISBN%3D0596002920/cafeaulaitA/ |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://www.cafeaulait.org/ |
| Read Cafe con Leche for XML News: http://www.cafeconleche.org/ |
+----------------------------------+---------------------------------+




Archive powered by MHonArc 2.6.24.

Top of Page