Hi,
Could you please confirme me whether the castor supporst
<xsd:extension> or not.
Because i am using "ContentItem" as a complex type. Now i want to add
"News" complextype to "ContentItem". The sourceGenerator generated the java
objects using this schema. I have opened ContentItem.java file and observed that
there is no set,get methods for News object. So, Could you please confirm me
whether castor supports this or not. If supports then how can i get the set,get
methods for News object in ContentItem.
Please if any body knows about this then give me the solution.
Here with i am giving c_H3GML.xsd
<!--Generic Content structure-->
<xsd:complexType name="ContentItem" abstract="true">
<xsd:annotation>
<xsd:documentation>Variable content container for content</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="ContentMetadata" type="ContentMetadata" minOccurs="0"/>
<xsd:element name="TopicMap" type="TopicMap" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Topic (a.k.a. keyword) mapping structure</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="News">
<xsd:complexContent>
<xsd:extension base="ContentItem">
<xsd:sequence>
<xsd:choice>
<xsd:element ref="Article" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="Video" type="VideoClip" maxOccurs="unbounded"/>
</xsd:choice>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="ContentItem" abstract="true">
<xsd:annotation>
<xsd:documentation>Variable content container for content</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="ContentMetadata" type="ContentMetadata" minOccurs="0"/>
<xsd:element name="TopicMap" type="TopicMap" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Topic (a.k.a. keyword) mapping structure</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="News">
<xsd:complexContent>
<xsd:extension base="ContentItem">
<xsd:sequence>
<xsd:choice>
<xsd:element ref="Article" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="Video" type="VideoClip" maxOccurs="unbounded"/>
</xsd:choice>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
Thanks in advance.
Thanks & Regards
sudhakar goud.T
Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. |
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
