Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem while using JAXB

Ravindra S Kshirsagar
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am generating java classes form one .xsd file using JAXB. JAXB is generating setter and getter methods for all my xsd tags leaving one setter method for a tag.
This tag is -
<xs:element ref="sswfm:FormElement" minOccurs="0" maxOccurs="unbounded"/>

It is creating the getter method for this tag like this-
java.util.List getFormElement();
but do not create setter method.
And When i remove the minOccurs="0" maxOccurs="unbounded, it is creating the setter method for this tag.But i want to keep this tag as it it and needs the setter method also.
What should i do?

Thank you in advance.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic