[jdom-interest] Entity IDs

Brett McLaughlin brett.mclaughlin at lutris.com
Wed Jun 21 11:24:31 PDT 2000

Elliotte Rusty Harold wrote:
> I'm looking at the Entity class and it occurs to me that it shoudl have
> methods to get the public and system IDs, much as the DocType class
> does. I'm also thinking that these should possibly be set in the
> constructor rather than in setter methods, but I'm not sure.

I tend to think you're right, at least on having the IDs. I am unsure
about the constructor thing... anyone else have an opinion? I can see
creating an entity, maybe with one or the other - makes having it
overloaded in the constructor sort of tricky...

> I'm also wondering if it makes sense to provide SAXEntityBuilder and
> DOMEntityBuilder classes that build Entity objects instead of Document
> objects, though this may be across the 20% divide of the 80/20 split.
> Thoughts?

Feels like a good idea and abstraction, but I'm not sure if its worth it
- if you have the bandwidth, I'd say go for it - it allows an easy
extension for people wanting to provide non-standard behavior in those


> --
> +-----------------------+------------------------+-------------------+
> | Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
> +-----------------------+------------------------+-------------------+
> |               Java I/O (O'Reilly & Associates, 1999)               |
> |            http://metalab.unc.edu/javafaq/books/javaio/            |
> |   http://www.amazon.com/exec/obidos/ISBN=1565924851/cafeaulaitA/   |
> +----------------------------------+---------------------------------+
> |  Read Cafe au Lait for Java News:  http://metalab.unc.edu/javafaq/ |
> |  Read Cafe con Leche for XML News: http://metalab.unc.edu/xml/     |
> +----------------------------------+---------------------------------+
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com

Brett McLaughlin, Enhydra Strategist
Lutris Technologies, Inc. 
1200 Pacific Avenue, Suite 300 
Santa Cruz, CA 95060 USA 

More information about the jdom-interest mailing list