[jdom-interest] (no subject)

Kevin Regan kevinr at valicert.com
Mon Jun 12 13:42:18 PDT 2000

How about we add the following class:

org.jdom.adaptor.StandardDOMAdaptor( DOMImplementation DOMImpl );

This will allow folks to use implementation for which there
currently is no adaptor.  In addition, most of the other
adaptors can be implemented in terms of this class:

org.jdom.adaptor.XercesDOMAdaptor() extends StandardAdaptor {

        super( org.apache.xerces.dom.DOMImplementationImpl() );


Finally, the DOMOutputter would be given the following method:

DOMOutputter.output( org.jdom.Document,
org.jdom.adaptor.AbstractDOMAdaptor );

I client could do the following:

org.jdom.Document jdomDoc = ...;

org.w3c.dom.Document = outputter.output( jdomDoc ); // use the default,
// Xerces?

org.w3c.dom.Document = outputter.output( jdomDoc, new
XercesDomAdaptor() ); // creates a StandardDOMAdaptor

org.w3c.dom.Document = outputter.output( jdomDoc, new
StandardDOMAdaptor( new org.w3c.dom.DOMImplementationImpl() );

This seems pretty flexible.


More information about the jdom-interest mailing list