Pierre van Rooden wrote: > Michiel Meeuwissen wrote: > > MapNode.java > >a node which is also a map. will be used in taglib/casting > > What is this for? Is it needed?
It is used to wrap a node to be a map. This is recognized by EL. It is more general, because I figure that there must be a zillion interface out there knowing about Map, and none knowing about bridge.Node. > Or would it be easier if we would instead implement map on Node? It would perhaps be a little easier to implement (though not actually much I think). It would though horribly bloat the Node interface, with all map methods which already have a counterpart in Node itself (getValue/get, setValue/set etc). The only thing which perhaps would be worth considering to borrow from Map would be something 'entrySet' which allows you through iterate through keys and values simultaneously, which is not currently possible for a Node. Michiel -- Michiel Meeuwissen mihxil' Mediacentrum 140 H'sum [] () +31 (0)35 6772979 nl_NL eo_XX en_US _______________________________________________ Developers mailing list [email protected] http://lists.mmbase.org/mailman/listinfo/developers
