xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Elliotte Harold <elharo AT metalab.unc.edu>
- To: Romain Deltour <romain.deltour AT inrialpes.fr>
- Cc: xom-interest <xom-interest AT lists.ibiblio.org>
- Subject: Re: [XOM-interest] final Attribute.getValue()
- Date: Tue, 21 Feb 2006 10:36:19 -0500
Romain Deltour wrote:
I think it would be really useful to allow subclasses override the Attribute.getValue() method, here is a use case:
That's not going to happen. A nonfinal getter method would enable subclasses to violate the constraints on the object; for instance by returning null or a string that contains illegal characters.
I'm not convinced your use case is real as opposed to theoretical, but even if you did convince me of that; correctness trumps performance in the XOM value hierarchy.
--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim
-
[XOM-interest] final Attribute.getValue(),
Romain Deltour, 02/21/2006
- Re: [XOM-interest] final Attribute.getValue(), Elliotte Harold, 02/21/2006
Archive powered by MHonArc 2.6.24.