[jdom-interest] Possibility to attach application data to jDom elements

Ken Rune Helland kenh at csc.no
Wed Jun 26 04:45:10 PDT 2002

> Hi folks,
> Is there a possibility to attach/associate app data to jDom elements?
> Perhaps through a type of attributes that aren't outputted? Or simply a
> void setApplicationData(Object data)/Object getApplicationData()
> method?
> Is there a possibility to achieve this using b9?
> Thx,
> Nils

Using a setAppData/getAppData was discussed but discarded to avoid
using memory on an exstra refercee per node in the XML-tree that only
a few people woud use.

The solution is to make your own subclass of the Nodes (Document/Element...)
you need to attach application data to and use a factory in the builder
you are using to use your subclasses.


More information about the jdom-interest mailing list