Ken, To my knowledge this is not possible right now. Feel free to create an enhancement request, though ....
Werner > -----Original Message----- > From: Ken Klose [mailto:[EMAIL PROTECTED] > Sent: Freitag, 12. Jänner 2007 22:41 > To: [email protected] > Subject: [castor-user] Can binding.xml reference a Choice > > Inside of a large schema I have the following complexType: > > <xs:complexType name="LocationType"> > <xs:sequence> > <xs:element name="Latitude" type="LatitudeType"/> > <xs:element name="Longitude" type="LongitudeType"/> > <xs:choice minOccurs="0"> > <xs:element name="Altitude" > type="AltitudeType"/> > <xs:element name="Elevation" > type="ElevationType"/> > </xs:choice> > </xs:sequence> > </xs:complexType> > > Two classes are generated as a result, LocationType and > LocationTypeChoice. I want both of these classes to be > specified as implementing an interface. I can do > LocationType like this: > > <complexTypeBinding name="LocationType"> > <java-class package="other.package.schema"> > <implements>some.package.myInterface</implements> > </java-class> > </complexTypeBinding> > > How can I define a binding for the generated Choice class? > > Thanks, > Ken > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

