second sentence needed to be more clear, sorry

 

I have defined and xsd element name <user> to contain a sequence of elements named <view>. I set the <view>’s type attribute to myType. When Castor generates the java code it created 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?

 


From: Jason [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 13, 2005 10:49 AM
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