users@jaxb.java.net

Re: <xjc:simple> and plurals

From: Wolfgang Laun <wolfgang.laun_at_gmail.com>
Date: Thu, 18 Jun 2009 16:54:03 +0200

Writing such an element will add another method to the ObjectFactory which
will give you, for schema type X, the possibility to create a JAXBElement<X>
using a parameter of type X. (This is, of course, just that what the final
remark in KK's blog suggests.)

But I have no idea whetehr Apache CXF is prepared to handle this - I didn't
know you weren't calling marshal yourself.

-W


On 6/18/09, nicolas de loof <nicolas.deloof_at_gmail.com> wrote:
>
> Could you please explain the <element> definitions strategy ?
>
> I don't myself invoke JAXB (I'm using Apache CXF) so I can't pass custom
> code.
>
> 2009/6/18 Wolfgang Laun <wolfgang.laun_at_gmail.com>
>
>> I've worked around this either by providing <element> definitions, at the
>> outermost schema nesting level, or by using the technique indicated at the
>> end of your reference, implemented as a generic method, see
>> https://jaxb.dev.java.net/tutorial/section_4_5-Calling-marshal.html#Calling%20marshal
>>
>> But I can imagine that neither is acceptable to you.
>> -W
>>
>>
>> On 6/18/09, nicolas de loof <nicolas.deloof_at_gmail.com> wrote:
>>>
>>> To support IDREFs and @XmlRootElement as explained here :
>>>
>>> http://weblogs.java.net/blog/kohsuke/archive/2006/03/why_does_jaxb_p.html
>>>
>>> 2009/6/18 Wolfgang Laun <wolfgang.laun_at_gmail.com>
>>>
>>>> On 6/18/09, nicolas de loof <nicolas.deloof_at_gmail.com> wrote:
>>>>
>>>>> Hi
>>>>>
>>>>> is there any way to disable plural generation when <xjc:simple> is
>>>>> enabled ?
>>>>> As my wsdl uses french names and allready pluralize attributes, this
>>>>> generates funny names (I find them funny, my collegues don't)
>>>>>
>>>>
>>>> Parbleu! This must sound like Gollum programming ;-)
>>>>
>>>> But what else do you nedd xjc:simple for?
>>>>
>>>> -W
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>> Cheers,
>>>>> Nicolas
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
>