[jdom-interest] Fast Factory

Vadim Strizhevsky Vadim.Strizhevsky at morganstanley.com
Tue May 27 07:05:26 PDT 2003


Elliotte Rusty Harold wrote:
> 
> At 7:07 AM -0400 5/27/03, Rolf Lear wrote:
> 
> I am struggling to think of circumstances where sub-classing makes sense.
> 
> There are three prime reasons for subclassing:
> 
> 1. To change the storage model; e.g. to sit JDOM on top of an
> underlying native XML database.
> 
> 2. To add additional methods that are useful in the local
> environment, but are not present in JDOM; e.g.
> verifyElementAgainstDatabase or readElementAsInt
> 
> 3. To make more specific classes for a specific application, e.g.
> HTMLPElement, HTMLDivElement, HTMLTableElement, etc.

4. Make JDOM tree a model and add event notification when tree is
modified.

-Vadim


-- 
NOTICE: If received in error, please destroy and notify sender.  Sender
does not waive confidentiality or privilege, and use is prohibited.



More information about the jdom-interest mailing list