[jdom-interest] Is JDOM dying?

Bradley S. Huffman hip at a.cs.okstate.edu
Tue Mar 25 08:23:55 PST 2003


Malachi de AElfweald writes:

> You are missing the point entirely.
> 
> HTML (v2, v3, v4), XHTML, and possibly some others all have the concept of 
> the "A HREF" tag.  Therefore, the most object-oriented
> approach would be to have a single class that extends URL that serializes
> itself as an A HREF tag.  It doesn't matter which of those namespaces it
> uses, it means exactly the same thing.  It would be better to write a 
> single class to handle it, then to write a class for each namespace that
> all do exactly the same thing.

Why not two classes? One to perform the action, one to map the
namespace, local name pair to a particular action. Doesn't ignore the
namespace (bad idea IMHO), and more flexible, again IMHO.

Brad



More information about the jdom-interest mailing list