ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Ws Wiki] Update of "MaryamMoazeni/GSoC2006" by MaryamMoazeni
Date Sat, 01 Jul 2006 21:59:23 GMT
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

------------------------------------------------------------------------------
  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:element name="shoesize">`
-   <xs:complexType>
+   `<xs:complexType>`
-     <xs:simpleContent>
+     `<xs:simpleContent>`
-       <xs:extension base="xs:integer">
+       `<xs:extension base="xs:integer">`
-         <xs:attribute name="country" type="xs:string" />
+         `<xs:attribute name="country" type="xs:string" />`
-       </xs:extension>
+       `</xs:extension>`
-     </xs:simpleContent>
+     `</xs:simpleContent>`
-   </xs:complexType>
+   `</xs:complexType>`
- </xs:element>
+ `</xs:element>`
  
  XMLBeans generated the corresponding code:
  
- public class shoesizeDocument 
+ `public class shoesizeDocument `
- {
+ `{`
-     getshoesize();
+     `getshoesize();`
  
-     setshoesize();
+     `setshoesize();`
  
  
-     public static class shoesizeImpl 
+     `public static class shoesizeImpl` 
-     {
+     `{`
-         getcountry();
+         `getcountry();`
  
-         setcountry();
+         `setcountry();`
-     }
+     `}`
- }
+ `}`
  
  
  Any Comments?!! :)

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@ws.apache.org
For additional commands, e-mail: general-help@ws.apache.org


Mime
View raw message