Hi,

Let me summarize all the queations that I have right now, so that
Werner, Ralf or some one who has some insight can help me.

1. Where will my code fit? Which module and package? For the time being I
didn't put my code anywhere, but I have a separate self contained
environment for my project with an ant build. Also I used the
org.exolab.castor.jaxb2schema.* as the package name.

2. How can I write the tests for the code. What I am thinking is like this.
-
Start with a schema and generate code for it using JAXB2 schema gen tool.
- feed those generated classes in to my code, build Castor schema model.
- Serialize the schema model and compare it with the original schema used.
One of the difficulties I encounter was that the two schemas might be
semantically equal but syntactically different. For example the
starting schema might contain maxOccurs=1, but the generated schema
won't contain it as it is the default. So I might have problems in
automating the testing.

3. How do I know which class to start with to feed in to my code? Basically
what will be the external api of my code.For the time being it is public
Schema buildSchema(Class clazz) throws
CastorException; But this requires the user to pass the root element
classname in to the code. But alternatively I was thinking to scan a
folder and load the classes. But I am not sure how feasible this is.

Those are some of the questions
that I have right now. Will post the rest as and when I have problems.

Thanks,
SD`2

Reply via email to