Hi Michael,

First thanks for the answer !
However I don't really get your point. If I'm not mistaken, all the methods of CharacterData are already implemented by CharacterDataImpl .... So the fact that ProcessingInstructionImpl doesn't implement CharacterData does not seem relevant to me ...
What bugs me is that CommentImpl implements CharacterData but the methods actually implementing this interface are coming from the CharacterDataImpl which from a Hierarchy point of view has nothing to do with the CharacterData interface ... The naming of the two classes, whiwh must have been chosen appropriatly, adds even more to this point because usually ClassImpl implements the Interface Class.


Do you see my point ?

Simon




Michael Glavassevich wrote:


Hi Simon,

The reason org.apache.xerces.dom.CharacterDataImpl doesn't implement
CharacterData is because one of its derived classes,
org.apache.xerces.dom.ProcessingInstructionImpl, doesn't implement this
interface. The ProcessingInstruction interface only extends Node.


The other two subclasses for comment nodes and text nodes implement
CharacterData as they should.

On Tue, 4 Nov 2003, Simon Bretin wrote:



Hello Xerces developpers,

I have been working with Xerces for quite some times now but just as a
simple user.  I'm currently working on a project where I try to reduce
to the bare minimum the size of java applications, by doing some
bytecode optimization.
Within this work I found a little problem with the class
org.apache.xerces.dom.CharacterDataImpl. This class extends ChildNode
but does not implement CharacterData which would seem like the correct
thing to do. Since this is an abstract class, the class extending
CharacterDataImpl (which is abstract) will also implement CharacterData,
thus making the hierarchy somewhat correct.
I was wondering if there was a true reason behind this miss, or if my
understanding of the hierarchy of this class was incorrect ?

Thanks,

Simon



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--------------------------- Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to