Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Attributes, ParentNodes, and "child" nodes ...

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: Mike Colbert <mbcolbert AT yahoo.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Attributes, ParentNodes, and "child" nodes ...
  • Date: Wed, 15 Mar 2006 11:55:25 -0500

Mike Colbert scripsit:

> But Attribute inherits getParent from Node. I suspect I'm way off-base,
> but I'm starting to question the IS-A relationship between Attribute
> and Node. Liskov/LSP comes to mind.

The LSP says:

Let q(x) be a property provable about objects x of type T. Then
q(y) should be true for objects y of type S where S is a subtype
of T.

But because Node is abstract, there are no such "objects x", so it doesn't
directly apply.

--
Work hard, John Cowan
play hard, cowan AT ccil.org
die young, http://www.ap.org
rot quickly. http://www.ccil.org/~cowan




Archive powered by MHonArc 2.6.24.

Top of Page