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: Mike Colbert <mbcolbert AT yahoo.com>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Attributes, ParentNodes, and "child" nodes ...
  • Date: Wed, 15 Mar 2006 09:19:39 -0800 (PST)

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

I'm not so sure. Does this hold even if getParent is not abstract (which
it's not)?

Mike



----- Original Message ----
From: John Cowan <cowan AT ccil.org>
To: Mike Colbert <mbcolbert AT yahoo.com>
Cc: xom-interest AT lists.ibiblio.org
Sent: Wednesday, March 15, 2006 11:55:25 AM
Subject: Re: [XOM-interest] Attributes, ParentNodes, and "child" nodes ...


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