Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] lack of iterators in the API

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Regier Avery J" <RegierAveryJ AT JohnDeere.com>
  • To: "'xom-interest AT lists.ibiblio.org'" <xom-interest AT lists.ibiblio.org>
  • Subject: [XOM-interest] lack of iterators in the API
  • Date: Fri, 27 Sep 2002 08:49:33 -0500

Hello,

I was very curious while perusing the JavaDoc that there are absolutely no
Iterators in the API.

Is this on purpose? I didn't see it listed as a design consideration.

In my own API's I provide type-safe (or castless) iterators that implement
Iterator, Enumeration, and ListIterator via handy base classes. This
provides that the iterators returned can be used easily with virtually any
API. I would also provide methods such as:
public Foo nextFoo();
public Foo previousFoo();
to provide a type safe iteration.

If you have any objections to iterators, would the above approach mitigate
those concerns?

Thanks,
Avery J. Regier





Archive powered by MHonArc 2.6.24.

Top of Page