Hi all!

When using CodeGen customizations is there any way to override maxOccurs
from schema? For example in schema I have

<element type="string" name="foo" maxOccurs="unbounded" />

which by default will be generated as

private List<String> fooList

I want it to be generated as just String because I plan to use only the
first value. Thus in a case like

<foo>aaa</foo>
<foo>bbb</foo>
<foo>ccc</foo>

I want this to be unmarshalled as

String foo = "aaa";

and marshalled back as

<foo>aaa</foo>

Is it possible?

Thanks in advance,
Alexander
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to