No, it is a ComplexType
 
<xsd:complexType name="RuleType">
  <xsd:sequence>
   <xsd:element name="Header" type="HeaderType"/>
   <xsd:element name="Body" type="BodyType" minOccurs="0"/>
  </xsd:sequence>
 </xsd:complexType>
 
/Geir

________________________________

From: Wing Yew Poon [mailto:[email protected]] 
Sent: 10. mars 2009 18:47
To: [email protected]
Subject: RE: Missing methods in code generation


Geir,
is RuleType a simple type?
- Wing Yew

________________________________

From: [email protected] [mailto:[email protected]] 
Sent: Tuesday, March 10, 2009 8:11 AM
To: [email protected]
Subject: Missing methods in code generation



Hi, 
With reference to the following page from the xmlbeans tutorial section 
Multiple Occurrence Methods 
http://xmlbeans.apache.org/docs/2.0.0/guide/conMethodsForGeneratedJavaTypes.html
 
<http://xmlbeans.apache.org/docs/2.0.0/guide/conMethodsForGeneratedJavaTypes.html>
  

For this snippet from my schema: 

<xsd:complexType name="RulesType"> 
        <xsd:sequence> 
                <xsd:element name="Rule" type="RuleType" 
maxOccurs="unbounded"/> 
        </xsd:sequence> 
</xsd:complexType> 

 the methods corresponding to the following is not generated: 

void insertFoo(int index, FooType newValue) 

        Inserts the specified Foo child element at the specified index. 

void addFoo(FooType newValue) 

        Adds the specified Foo to the end of the list of Foo child elements. 

I am using version 2.4 

Any idea what the reason for the missing methods is ? 

Med vennlig hilsen / Best regards,
for Det Norske Veritas AS
Geir Øvsttun
_______________________________
Senior Information Architect
DNV Industry / Public and Defence

Mobile: +47 45 24 94 53
Fax:     +47 67 57 99 11
Web: www.dnv.com <http://www.dnv.com/>  


**************************************************************************************The
 contents of this e-mail message and any attachments are confidential and are 
intended solely for the addressee. If you have received this transmission in 
error, please immediately notify the sender by return e-mail and delete this 
message and its attachments. Any unauthorized use, copying or dissemination of 
this transmission is prohibited. Neither the confidentiality nor the integrity 
of this message can be vouched for following transmission on the 
Internet.**************************************************************************************
 


**************************************************************************************The
 contents of this e-mail message and any attachments are confidential and are 
intended solely for the addressee. If you have received this transmission in 
error, please immediately notify the sender by return e-mail and delete this 
message and its attachments. Any unauthorized use, copying or dissemination of 
this transmission is prohibited. Neither the confidentiality nor the integrity 
of this message can be vouched for following transmission on the 
Internet.**************************************************************************************

Reply via email to