Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] XOM and the methods of Object class

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: John Cowan <cowan AT ccil.org>
  • To: Michael Kay <mike AT saxonica.com>
  • Cc: 'Elliotte Harold' <elharo AT metalab.unc.edu>, xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] XOM and the methods of Object class
  • Date: Sat, 7 Jan 2006 22:50:23 -0500

Michael Kay scripsit:

> I'm inclined to think that the root problem is that subclassing is being
> used where it's not appropriate. The relationship between XOM and an
> application that uses XOM is at heart a server-client relationship. If you
> allow yourself to be subclassed, you have to trust the component doing the
> subclassing, and a server shouldn't trust its clients. In other words, it's
> a bad idea for objects in the application domain to be implemented as
> subclasses of Element: the layering is wrong.

I quite agree, but that's the only way to get custom behavior from a node in a
XOM tree.

--
"But I am the real Strider, fortunately," John Cowan
he said, looking down at them with his face cowan AT ccil.org
softened by a sudden smile. "I am Aragorn son http://www.ccil.org/~cowaan
of Arathorn, and if by life or death I can http://www.reutershealth.com
save you, I will." --LotR Book I Chapter 10




Archive powered by MHonArc 2.6.24.

Top of Page