Hi, While compiling it gives cyclic inheritance error.
Regards Vinaya -----Original Message----- From: Werner Guttmann [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 28, 2006 3:38 AM To: [email protected] Subject: RE: [castor-user] Binding file for xsd:enumeration not generating expected classes Vinaya, If you don't use a binding file at all, what's the exact notifiction on teh naming conflict you get when running the source generator ? Werner > -----Original Message----- > From: Vinaya Tirikkovalluru > [mailto:[EMAIL PROTECTED] > Sent: Montag, 27. März 2006 23:42 > To: [email protected] > Subject: RE: [castor-user] Binding file for xsd:enumeration > not generating expected classes > > Hi, > > I have a same problem too. > Giving this didn't work. > What could be the alternative. > > <elementBinding name="complexType:ParentA/type"> > <java-class name="Whatever"/> > </elementBinding> > > Regards > Vinaya > > -----Original Message----- > From: Werner Guttmann [mailto:[EMAIL PROTECTED] > Sent: Monday, March 27, 2006 4:36 PM > To: [email protected] > Subject: Re: [castor-user] Binding file for xsd:enumeration > not generating expected classes > > HI, > > can you please try to switch to the following binding file fragment: > > <elementBinding name="complexType:ParentA/type"> > <java-class name="Whatever"/> > </elementBinding> > > as 'type' happens to be an element definition (albeit nested > within a complex type definition). If that does not help, we > might have to look into alternatives. > > Regards > Werner > > [EMAIL PROTECTED] wrote: > > Hi, > > > > I have a problem that is very similar to the one specified > in the link > below. > > > > http://marc.theaimsgroup.com/?l=castor-user&m=113881682316908&w=2 > > > > I am not able to generate classes using my binding file for > enumerated > > types that have the same name. > > > > Here is an excerpt from the XSD that I am having problem with. > > > > <xsd:complexType name="ParentA"> > > <xsd:sequence> > > <xsd:element name="AName" type="xsd:string"/> > > <xsd:element name="type"> > > <xsd:simpleType> > > <xsd:restriction base="xsd:string"> > > <xsd:enumeration value="A1"/> > > <xsd:enumeration value="A2"/> > > <xsd:enumeration value="A3"/> > > </xsd:restriction> > > </xsd:simpleType> > > </xsd:element> > > </xsd:sequence> > > </xsd:complexType> > > <xsd:complexType name="ParentB"> > > <xsd:sequence> > > <xsd:element name="BName" type="xsd:string"/> > > <xsd:element name="type"> > > <xsd:simpleType> > > <xsd:restriction base="xsd:string"> > > <xsd:enumeration value="B1"/> > > <xsd:enumeration value="B2"/> > > <xsd:enumeration value="B3"/> > > </xsd:restriction> > > </xsd:simpleType> > > </xsd:element> > > </xsd:sequence> > > </xsd:complexType> > > > > Here is the binding file that I have used to resolve the collision. > > > > <binding xmlns="http://www.castor.org/SourceGenerator/Binding" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > > > > > > <complexTypeBinding name="complexType:ParentA/type"> > > <java-class name="Whatever"/> > > </complexTypeBinding> > > > > </binding> > > > > This did not generate "Whatever.java". I am wondering if there is a > > solution to this. I would appreciate any help. > > > > Thanks > > Subu. > > > > ------------------------------------------------- > > If you wish to unsubscribe from this list, please send an empty > > message to the following address: > > > > [EMAIL PROTECTED] > > ------------------------------------------------- > > > > > > > ------------------------------------------------- > If you wish to unsubscribe from this list, please send an > empty message to the following address: > > [EMAIL PROTECTED] > ------------------------------------------------- > > > > > > This electronic message is intended only for the use of the > individual(s) or entity(ies) named above and may contain > information which is privileged and/or confidential. If you > are not the intended recipient, be aware that any disclosure, > copying, distribution, dissemination or use of the contents > of this message is prohibited. If you received this message > in error, please notify the sender immediately. > > ------------------------------------------------- > If you wish to unsubscribe from this list, please send an > empty message to the following address: > > [EMAIL PROTECTED] > ------------------------------------------------- > > > ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] ------------------------------------------------- This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately. ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] -------------------------------------------------

