xsdconfig revisited

2007-08-27 Thread Schalk Neethling
Greetings All,

 

I have a xsdconfig file named statement.xsdconfig. This file resides in
the same directory as all of the XSD's from which my XMLBeans are
generated. It contains the following:

 

xb:config 

xmlns:tns=http://statement.wealth.momentum; 

xmlns:xb=http://xml.apache.org/xmlbeans/2004/02/xbean/config;

xb:extension for=momentum.wealth.statement.*

xb:interface
name=momentum.wealth.statement.ContractNotesInterface

 
xb:staticHandlermomentum.wealth.statement.ContractNotesInterfaceHandle
r/xb:staticHandler

/xb:interface

/xb:extension

/xb:config

 

What I am trying to accomplish is to use the interface extension to get
the generated implementation classes to extend and additional interface
called ContractNotesInterface. 

 

Is the way I am trying to implement this correct in the above code?
Should the for contain the package name of the final java source files
or the xmlns:tns defined inside the XSD files? What exactly should the
staticHandler do? Thanks!

 

--

Kind Regards,

Schalk Neethling


This email and all content are subject to the following disclaimer:

http://content.momentum.co.za/content/legal/disclaimer_email.htm




RE: xsdconfig revisited

2007-08-27 Thread Cezar Andrei
Check out the wiki page

http://wiki.apache.org/xmlbeans/ExtensionInterfacesFeature

 

 and the tests

http://svn.apache.org/viewvc/xmlbeans/trunk/test/cases/xbean/extensions/
interfaceFeature/

 

As it's described in the wiki page: The for attribute can accept a list
of xbean java interfaces (separated by space) or * to include all of
them in the extension. This means that momentum.wealth.statement.* is
not valid.

 

The handler class has to contain corresponding methods to handle the
call of interface methods.

 

Cezar

 



From: Schalk Neethling [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 27, 2007 3:22 AM
To: user@xmlbeans.apache.org
Subject: xsdconfig revisited

 

Greetings All,

 

I have a xsdconfig file named statement.xsdconfig. This file resides in
the same directory as all of the XSD's from which my XMLBeans are
generated. It contains the following:

 

xb:config 

xmlns:tns=http://statement.wealth.momentum; 

xmlns:xb=http://xml.apache.org/xmlbeans/2004/02/xbean/config;

xb:extension for=momentum.wealth.statement.*

xb:interface
name=momentum.wealth.statement.ContractNotesInterface

 
xb:staticHandlermomentum.wealth.statement.ContractNotesInterfaceHandle
r/xb:staticHandler

/xb:interface

/xb:extension

/xb:config

 

What I am trying to accomplish is to use the interface extension to get
the generated implementation classes to extend and additional interface
called ContractNotesInterface. 

 

Is the way I am trying to implement this correct in the above code?
Should the for contain the package name of the final java source files
or the xmlns:tns defined inside the XSD files? What exactly should the
staticHandler do? Thanks!

 

--

Kind Regards,

Schalk Neethling

This email and all content are subject to the following disclaimer:

 

http://content.momentum.co.za/content/legal/disclaimer_email.htm

 

 


Notice:  This email message, together with any attachments, may contain 
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated 
entities,  that may be confidential,  proprietary,  copyrighted  and/or legally 
privileged, and is intended solely for the use of the individual or entity 
named in this message. If you are not the intended recipient, and have received 
this message in error, please immediately return this by email and then delete 
it.