Posted
on Dec 23, 2011
(permalink)
Hi Petar Mladenov,
Thanks for the example, I've gone through example but, In the example the child are belong to same type whereas for me all child will be of different type.
Root will show list of Mobiles and each mobile object will contain a list of sim and a list folders, both the sim and folder are of entirely different types. Since I may not specific my business objects here, so, I've specified with some common examples.
It will be like a node with two or more different types of collections and I may not unit this collection to single collection. Please direct me in doing the above requirement.
And my tree structure will look like:
Mobile 1
-- ModelName
-- Price
+ Sims
-- Sim1
-- Number
+ Contacts
-- Sim2
-- Number
+ Contacts
+ Folders
-- FolderName
+ Files
-- FileName
-- Size
-- Capacity
Mobile 2
-- ModelName
-- Price
+ Sims
-- Sim1
-- Number
+ Contacts
-- Sim2
-- Number
+ Contacts
+ Folders
-- FolderName
+ Files
-- FileName
-- Size
-- Capacity
Thanks,
Prakash.