You can use the Extension Interface feature that has been mentioned
before on this list to accomplish the second half of your goal, see
http://wiki.apache.org/xmlbeans/ExtensionInterfacesFeature

But that won't work for constructors, you would have to hack the
generated code to do that (not that this is something I would
recommend!).

Radu

-----Original Message-----
From: John Hafner [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 20, 2005 2:36 PM
To: [email protected]
Subject: Adding Costructors and other methods to java classes
generatedfrom Schema Objects


Hello,

I am using XmlBeans on a project where I would like to add functionality
to code generated from a schema. I would like to have it auto-generated
similarly to the JavaBeans generated for each object in the schema.
Specifically, I would like to auto-generate constructors and a few other
methods for each object in the schema.  I am having a hard time finding
the best way to do this.  If anyone could point out an easy way they
have done this or where in source code I should look to add code to
generate these methods I would greatly appreciate it.


-- 
John Hafner,    Black Notebook R&D
<[EMAIL PROTECTED]>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to