[jdom-interest] protected setDocument() and setParent() use cases

Elliotte Rusty Harold elharo at metalab.unc.edu
Mon May 6 15:07:06 PDT 2002


Could somebody please remind me why there are protected setParent() and 
setDocument() methods in most of the classes in org.jdom?

    protected Element setParent(Element parent)
    protected Element setDocument(Document owner)

Why might a subclass need to use these?

-- 
+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+ 
|           The XML Bible, 2nd Edition (IDG Books, 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/   |
+----------------------------------+---------------------------------+






More information about the jdom-interest mailing list