At 2:02 AM +0000 3/21/02, James Strachan wrote: >You've got a point and I hear where you are coming from. Though I remember >reading in some good book that I've forgotten the name of right now (and am >travelling so can't rifle through my bookcase) a good Java-OO pattern of >simplifying classnames wherever possible and if possible hide some >implementaiton detail from its name. e.g. all the major DOM-ish APIs have an >Element and a Document rather than a JDOMDocument etc. >
That's because in JDOM there's exactly one Document class. Ditto in DOM, Ditto in most similar APIs. They are not part of the same library. They are not expected to be used with each other. And even then it causes problems. If you look at the actual implementations of the DOM interfaces you will find classes like DocumentImpl and DeferredDocument. They do not reuse the same names between different packages within the same library. -- +-----------------------+------------------------+-------------------+ | Elliotte Rusty Harold | [EMAIL PROTECTED] | Writer/Programmer | +-----------------------+------------------------+-------------------+ | The XML Bible, 2nd Edition (Hungry Minds, 2001) | | http://www.cafeconleche.org/books/bible2/ | | http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/ | +----------------------------------+---------------------------------+ | Read Cafe au Lait for Java News: http://www.cafeaulait.org/ | | Read Cafe con Leche for XML News: http://www.cafeconleche.org/ | +----------------------------------+---------------------------------+ _______________________________________________ Jaxen-interest mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jaxen-interest