users@jaxb.java.net

RE: Re: XSD Data types

From: <HeruMartinus.Salim_at_infineon.com>
Date: Tue, 14 Nov 2006 11:33:43 +0100

At least I found it.
But a bit tricky.
From the fieldOutline.getPropertyInfo(), I call the method
getOwnerSchema() which returning XSSchema. From here, I just get into
the getSimpleTypes().
But I think, it's not so intuitive, because I must go down through the
structure, and then get the parent schema of this field. So I must
double traversing, one for getting the field name, and the second to get
the types.

Can't we just return the XSSchema from the level of ClassOutline?

Regards,
Heru

-----Original Message-----
From: Kohsuke Kawaguchi [mailto:Kohsuke.Kawaguchi_at_Sun.COM]
Sent: Monday, November 13, 2006 8:27 PM
To: users_at_jaxb.dev.java.net
Subject: Re: XSD Data types

HeruMartinus.Salim_at_infineon.com wrote:
> Still can't find it.
> As info when I call getSchemaComponent, the returned object is from
> Class com.sun.xml.xsom.impl.ParticleImpl which I cannot find in the
> API

You are on the right track. Look at http://xsom.dev.java.net/ and its
javadoc.

--
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com