[jdom-interest] Re: Adding a DocumentListener interface

Joseph Bowbeer jozart at csi.com
Wed Jul 26 01:14:25 PDT 2000

Rather than subclassing SAXBuilder and Element to support
listeners (with the modifications you suggest), wouldn't it be
more extensible to "fully articulate" the class hierarchy in the
manner of Swing?  By this I mean: define an Element interface, an
AbstractElement for subclassing, and a DefaultElement for the
masses. And so on down the line.  Note that DefaultElement is
essentially what Element is now.
Joe Bowbeer

----- Original Message -----
> From: Harry Evans
> Sent: Tuesday, July 25, 2000 2:58 PM
> To: jdom-interest at jdom.org
> Subject: RE: Adding a DocumentListener interface
> Regarding Document Listeners:
> I think that it might be useful to make it possible to
> add listeners to the various JDOM core objects.
> However, I don't think that the actual listener code
> needs to be in the core objects.  A slight modification
> to the builder classes would allow any level of JDOM
> data to be properly subclassed at build time.
> Following this same pattern, dynamically constructed
> documents could also use listeners.

More information about the jdom-interest mailing list