> I am trying to use this library for a project. But I have couple of
> questions and if you can help me to clarify them, it would be great. My
> project is to build a schema model from a given set of JAXB2 generated
> classes. I use your library to read the annotations of those JAXB2 classes
> and create a schema model. I can not use JAXB2 model as my project
requires
> me to generate castor schema model. Here are the questions.
>
> 1. If I am given a set of JAXB2 annotated classes, how can I know from
where
> to start? Meaning how can I find the root element? For the time being I am
> thinking of searching for all the files to search for that element which i
> donot think as an elegant method to approach the problem.
You create TypeInfoSet, and from there you can list up elements.
I'm sorry I didn't get the answer. Say if I have set of JAXB2 generates
classes Foo1.java, Foo2.java, Foo3.java how can i know which one to start
with. Can you please give me a code sample?
> 2. In the user guide posted in the site, there is a method
> RuntimePropertyInfo.getKind(). But when I am trying to use that method it
is
> not available inside that class. Which method should I use instead of
that?
Hmm. Which version are you using?
I think I got the answer for this. The method is renamed to kind() instead
of getKind() in the latest stable version. You might wanna update the user
guide.
Thanks,
SD
>