[jdom-interest] getProperty/setProperty on Parent
Bradley S. Huffman
hip at cs.okstate.edu
Wed Feb 18 20:01:23 PST 2004
Jason Hunter writes:
> > Should Parent define getProperty/setProperty so extra info can be carried
> > with both Document and Element?
> I was a little worried about carrying around an extra pointer on every
> Element. On every document, it's fine. But every Element? Course, if
> we did that it'd be a place you could have a builder put a source line
> number, base uri, and other extensible features. Choose in your builder
> which special data you want stored with each element.
To support base URI your going to have to carry at least a String reference,
so may as well be a Map.
More information about the jdom-interest