Title: Message
Hi Jason,
 
Andrew Fawcett responded to my almost similar question a few days back. Please see: http://www.castor.org/sourcegen.html#The-'type'-method
 
Hope this helps, did the trick for me!
 
Rutger
-----Original Message-----
From: Jason [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 13, 2005 5:49 PM
To: [email protected]
Subject: [castor-user] Base attribute on xsd elements

I have defined and xsd element name 'user' to contain a sequence of elements named 'view'. I the element 'view' type attribute to myType. When Castor generates the java code it create the class View which extends class MyType. Castor also creates the class UserDescriptor. The UserDescriptor class contains a addView(View v) method; why did Castor not use the base class MyType as the parameter data type for the addView method?

 

Thanks in advance

J

Reply via email to