I have a java class which is used to retrieve objects (Assume foo from Foo class is used for this)
For example
ComplexObject cObject=foo.getMeAnObject(param);
will return me an object.
This object itself consists of properties which could be hashmaps, Lists or could be some other objects
For example
Map<String,AnotherObject> aObjects=cObject.getSomeFields();
AnotherObject2 aObject2=cObject.getDifferentFields();
I need to create individual XML Schema Definitions (XSDs) for these object properties. This has to be automatically generated. Eventually those individual XSDs will be used to create the XSD for ComplexObject
Can anybody suggest me a technology or library which I should use to solve this problem