[jdom-interest] Element Reference from Attribute

Louis Tribble louis.tribble at metamata.com
Tue Nov 21 17:43:43 PST 2000

Patrick Dowler wrote:
> In a singly-linked version, you could write a Builder that tried to share
> references to Attributes. In some cases, this could give a great advantage
> in memory consumption.

A builder may still be able to create shared attributes if Element were 
modified to clone and set a parent whenever it returned an attribute
(or some other copy on read scheme).


Louis Tribble                                         louis at metamata.com
Metamata, Inc.                                   http://www.metamata.com
Tools for serious Java developers.                       +1 510 796 0915

More information about the jdom-interest mailing list