users@jaxb.java.net

Re: Réf. : Re: Plugin problem

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 17 Aug 2005 10:10:47 -0700

Patrick BRUNETON wrote:
> Yes I can run my plugin with your launcher. Thanks !
>
> I have another question, about the API.
>
> Consedering the schema fragment :
>
> <xs:simpleType name="Length">
> <xs:restriction base="xs:double"></xs:restriction>
> </xs:simpleType>
>
> <xs:complexType>
> <xs:sequence>
> <xs:element name="Test" type="Length" />
> ...
>
> In my plugin when I visit the model, I can see in the properties that there
> is a property "Test" with type "double".
> Is there a way to know at the plugin level, that the xml type is "Length" ?
> I would like to use this info to annotate the generated code.
> I could use appinfo customization in the schema but it would be heavier.
> (It seems I cannot customize the simpleType)

It's still a TODO for me to point to XSOM objects from XJC model
objects. You can file an issue on the issue tracker to track the
progress on this.

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com