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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
