Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Ws Wiki" for change 
notification.

The following page has been changed by MaryamMoazeni:
http://wiki.apache.org/ws/MaryamMoazeni/GSoC2006

------------------------------------------------------------------------------
  
  I am wondering what are the restrictions one can impose in complex content 
other than removing optional elements in the base type? For instance, what 
happens when the base type is '''anyType'''?
  
+ '''[7/01/2006]'''
+ 
+ There's a whole different scenario for Simple Content extension, since 
there's no elements permitted in the Simple Content ( only attributes & text ). 
In this case, '''nested classes''' are used instead of inheritance. This is an 
example tested by XMLBeans:
+ 
+ 
+ <xs:element name="shoesize">
+   <xs:complexType>
+     <xs:simpleContent>
+       <xs:extension base="xs:integer">
+         <xs:attribute name="country" type="xs:string" />
+       </xs:extension>
+     </xs:simpleContent>
+   </xs:complexType>
+ </xs:element>
+ 
+ XMLBeans generated the corresponding code:
+ 
+ public class shoesizeDocument 
+ {
+     getshoesize();
+ 
+     setshoesize();
+ 
+ 
+     public static class shoesizeImpl 
+     {
+         getcountry();
+ 
+         setcountry();
+     }
+ }
+ 
+ 
+ 
+ 
+  
+ 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to