[jdom-interest] protected DOMOutputter methods

Elliotte Rusty Harold elharo at metalab.unc.edu
Tue May 6 05:57:17 PDT 2003


There are two protected methods in DOMOutputter:

protected org.w3c.dom.Element output(Element element,
                                      org.w3c.dom.Document domDoc,
                                      org.jdom.output.NamespaceStack namespaces)
                               throws JDOMException


protected org.w3c.dom.Attr output(Attribute attribute,
                                   org.w3c.dom.Document domDoc)
                            throws JDOMException


The former is unusable because of the org.jdom.output.NamespaceStack 
argument. The latter is just weird. I'm not sure what these methods 
are supposed to do exactly, or why someone might want to subclass 
DOMOutputter anyway. Unless we're prepared to spend a lot of time and 
energy on figuring out how to properly design this class for 
subclassing, I think we should deprecate these two methods , and 
eventually mark them private or package protected; just for 
simplicity if nothing else. They probably made sense at one point, 
but now they seem vestigial.
-- 

   Elliotte Rusty Harold
   elharo at metalab.unc.edu
   Processing XML with Java (Addison-Wesley, 2002)
   http://www.cafeconleche.org/books/xmljava
   http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA



More information about the jdom-interest mailing list