a type for example from my schema:
<xs:complexType name="T2">
<xs:complexContent>
<xs:extension base="T1">
<xs:sequence>
<xs:element name="myName" type="xs:double"></xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
The generated class: (I would like myName to be of type Double)
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "T2", propOrder = {
" myName "
})
public class T2 extends T1{
protected double myName;
public double getMyName () {
return myName;
}
public void setMyName (double value) {
this. myName = value;
}
public boolean isSetMyName () {
return true;
}
}
-----Original Message-----
From: Felipe Gaúcho [mailto:fgaucho_at_gmail.com]
Sent: Tuesday, July 15, 2008 9:37 AM
To: users_at_jaxb.dev.java.net
Subject: Re: how to create objects instead of primitives
ok, please send us a fragment of your schema.. an example of element
and what types you want in the java class....
On Tue, Jul 15, 2008 at 10:20 AM, Shahar Valdman
<Shahar.Valdman_at_modelity.com> wrote:
> Hi,
> Thanks for the rapid reply, but I have searched through the customization guide and could not find such an option.
> I noticed choice attributes lead to similar results, but my schema does not have choices for these cases.
>
> -----Original Message-----
> From: Felipe Gaúcho [mailto:fgaucho_at_gmail.com]
> Sent: Tuesday, July 15, 2008 9:17 AM
> To: users_at_jaxb.dev.java.net
> Subject: Re: how to create objects instead of primitives
>
> use customizations:
> http://java.sun.com/webservices/docs/1.5/tutorial/doc/JAXBUsing4.html
>
> On Tue, Jul 15, 2008 at 10:12 AM, Shahar Valdman
> <Shahar.Valdman_at_modelity.com> wrote:
>> Hi everyone,
>>
>>
>>
>> I am having an issue with instructing JAXB to generate java classes without
>> using primitives (I would like jaxb not to create double, but Double etc). I
>> noticed it's possible to set parse and print methods for those primitives,
>> but it leads to undesirable results, involving adapters..
>>
>> Is that somehow possible to inform JAXB not to use primitives?
>>
>>
>>
>> Thanks,
>>
>> Shahar.valdman_at_modelity.com
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>