E
Elhanan
hi
i'm have a tree of simple beans. this tree should pupoulated from an
xml data source which is VERY different structure, so no xml binding or
xsl would do the trick.
i was thinking of creating a tree of adapters which will implement the
same interface as the tree of beans, so externally there should be no
difference.
i then thought of using some sort of clone method which will simply go
though each getter and place it in new objetct's setter, the commons
copyProperties method almost does this, but it only does shallow copies
of collections (so i have to create a method what willl go through each
item in a collection an use it's clone method as well.
any ideas?
i'm have a tree of simple beans. this tree should pupoulated from an
xml data source which is VERY different structure, so no xml binding or
xsl would do the trick.
i was thinking of creating a tree of adapters which will implement the
same interface as the tree of beans, so externally there should be no
difference.
i then thought of using some sort of clone method which will simply go
though each getter and place it in new objetct's setter, the commons
copyProperties method almost does this, but it only does shallow copies
of collections (so i have to create a method what willl go through each
item in a collection an use it's clone method as well.
any ideas?