Hi Werner and all,

Finally I can now start the project :)

Anyway, I looked more deeper in to what I have to do and these are some
initial ideas. Please help me to clarify these.

1. The basic idea is to look at a set of JAXB2 generated classes and from
that gather information, pump them in to Castor to generate code. So what I
thought was to create an instance of
org.exolab.castor.xml.schema.Schemaobject and populate it from the
information extracted from JAXB2. This
Schema object can be fed in to Castor source generator to generate java
sources. The method I am looking to hook this is
SchemaGenerate.generateSource(final Schema schema, final String packageName)

2. JAXB2 comes with a java-to-schema converter. I didn't look at it much,
but I think I can either
 I. hack in to that and plugin castor Schema object to get it populated or
 II. let it generate a schema and pump it in to SchemaGenerate in Castor.

So these are the paths that I will be exploring to achieve the goal. Please
help me to refine these ideas and to achieve what you wanted to achieve from
this project.

Thanks,
SD

Reply via email to