users@jaxb.java.net

Re: No class generated for element with type="int" (xjc)

From: Martin Grotzke <martin.grotzke_at_javakaffee.de>
Date: Tue, 11 Mar 2008 10:56:33 +0100

Hi,

that's exactly what I want (restrictions) - good guess :) - but this
doesn't change anything...

Thanx && cheers,
Martin


On Tue, 2008-03-11 at 09:29 +0100, Felipe Gaścho wrote:
> try this:
>
> <element name="myElement">
> <xsd:simpleType>
> <xsd:restriction base="xsd:int">
> <xsd:minInclusive value="1"/> <!-- of course, optional :) -->
> <xsd:maxInclusive value="3"/>
> </xsd:restriction>
> </xsd:simpleType>
> </element>
>
> On Tue, Mar 11, 2008 at 9:14 AM, Martin Grotzke
> <martin.grotzke_at_javakaffee.de> wrote:
> > Hi Aleksei,
> >
> > thanx for your pointer! Unfortunately, activating simple-minded mode for
> > xjc doesn't change anything for me - there's still no class generated
> > for myElement. Should this be the case, or is it expected, that only the
> > ObjectFactory provides createMyElement?
> >
> > Btw. I changed the jaxb:version to "2.0", as I already have another
> > globalBindings that used jaxb:version="2.0" (I don't know if it does
> > matter).
> >
> > So my issue is, that no class at all is generated for myElement.
> >
> > Anything else?
> >
> > Thanx && cheers,
> > Martin
> >
> >
> > On Mon, 2008-03-10 at 17:05 +0100, Aleksei Valikov wrote:
> > > Hi.
> > >
> > > > in my schema I have an element of type int, for that xjc does not
> > > > generated a java class:
> > > >
> > > > <element name="myElement" type="int" />
> > > >
> > > > I invoke xjc like this:
> > > >
> > > > $ xjc -p org.comp.proj -d target/generated-sources/xjc -verbose src/main/api-schema
> > > >
> > > > I would expect that xjc generated a class MyElement annotated with
> > > > @XmlRootElement.
> > > >
> > > > Is this an issue of xjc, or am I doing s.th. wrong?
> > > >
> > > > xjc -version gives "JAXB 2.1.3 in JDK 1.6".
> > >
> > > http://weblogs.java.net/blog/kohsuke/archive/2006/03/why_does_jaxb_p.html
> > >
> > > Bye.
> > > /lexi
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> > > For additional commands, e-mail: users-help_at_jaxb.dev.java.net
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>