OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: Next Round

[ Lists Home | Date Index | Thread Index ]
  • From: "Bill la Forge" <b.laforge@jxml.com>
  • To: <david@megginson.com>, "XML Developers' List" <xml-dev@ic.ac.uk>
  • Date: Wed, 20 Jan 1999 23:25:27 -0500

> > Or we could just redefine setDocumentHandler so that LexicalHandler is
> > automatically set if the given DocumentHandler implementation also
> > implements that interface.  The two interfaces are strongly related after
> > all.
>
>That's a bit Java-specific -- not all languages actually allow you to
>dynamically determine this sort of thing at runtime.


Having LexicalProcessor extend DocumentHandler would be a significant aid
in developing a generic filter framework, as it reduces the number of interface combinations
that need to be supported. (Filter structures for Document events likely being the same
structure needed to support Lexical events.)

One way to avoid being too Java-specific would be to support methods for each interface,
but adopt the convention that calling either method nullifies the effect of previous calls to
both methods.

Bill


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS