xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
- To: Hallvard Trætteberg <hal AT idi.ntnu.no>, <xom-interest AT lists.ibiblio.org>
- Cc:
- Subject: RE: [XOM-interest] Subclassing Element
- Date: Sat, 13 Sep 2003 18:05:33 -0400
At 10:20 AM +0200 9/11/03, Hallvard Trætteberg wrote:
The other part, handling detachment is also important. In JDOM I make my
Element subclass override setParent, which gave access to both the old
and new context. In this case, there is no need to actually change the
original behavior, just ensure that custom code is run in this case. So
detach may still be final, but any code that changes the parent could
call checkParentChange(oldParent, newParent) or something similar.
Would just adding a checkDetach() method fill this need? This would
be a protected method called at the beginning of each detach() much
like checkInsertChild and checkSetName and such are now.
--
Elliotte Rusty Harold
elharo AT metalab.unc.edu
Processing XML with Java (Addison-Wesley, 2002)
http://www.cafeconleche.org/books/xmljava
http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA
-
[XOM-interest] Subclassing Element,
Marc Ramsey, 09/10/2003
-
Re: [XOM-interest] Subclassing Element,
Elliotte Rusty Harold, 09/10/2003
-
Re: [XOM-interest] Subclassing Element,
Marc Ramsey, 09/10/2003
-
RE: [XOM-interest] Subclassing Element,
Hallvard Trætteberg, 09/11/2003
- RE: [XOM-interest] Subclassing Element, Elliotte Rusty Harold, 09/13/2003
- RE: [XOM-interest] Subclassing Element, Elliotte Rusty Harold, 09/13/2003
- RE: [XOM-interest] Subclassing Element, Elliotte Rusty Harold, 09/13/2003
-
RE: [XOM-interest] Subclassing Element,
Hallvard Trætteberg, 09/11/2003
-
Re: [XOM-interest] Subclassing Element,
Marc Ramsey, 09/10/2003
-
Re: [XOM-interest] Subclassing Element,
Elliotte Rusty Harold, 09/10/2003
Archive powered by MHonArc 2.6.24.