users@jaxb.java.net

JAXB generated code is giving me a get method but NOT a set option

From: DarVar <desmond.kirrane_at_gmail.com>
Date: Fri, 12 Oct 2007 10:18:12 -0700 (PDT)

I have the following schema:
When generated using JAXB it only gives me Paragraph.getBody().
It does not give me a Paragraph.setBody() method to add a new <body>
element.
How do I get a setter?

Note a <paragraph> element can have multiple <body> elements.
A <body> element simply includes text.


<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
  <xs:element name="paragraph">
    <xs:complexType>
      <xs:sequence>
        <xs:element maxOccurs="unbounded" ref="Body"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="Body" type="xs:string"/>
</xs:schema>



-- 
View this message in context: http://www.nabble.com/JAXB-generated-code-is-giving-me-a-get-method-but-NOT-a-set-option-tf4614197.html#a13177056
Sent from the java.net - jaxb users mailing list archive at Nabble.com.