You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlbeans.apache.org by Apache Wiki <wi...@apache.org> on 2011/12/07 02:53:47 UTC
[Xmlbeans Wiki] Trivial Update of "ExtensionInterfacesFeature" by wentforgold
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Xmlbeans Wiki" for change notification.
The "ExtensionInterfacesFeature" page has been changed by wentforgold:
http://wiki.apache.org/xmlbeans/ExtensionInterfacesFeature?action=diff&rev1=20&rev2=21
</xb:extension>
</xb:config>
}}}
- The ''for'' attribute can accept a list of xbean java interfaces (separated by space) or '''*''' to include all of them in the extension. Why the java names of the xbeans, when all we have at the beginning is schema files? Because there are java xbeans generated also for anonymous types, and we believe that the java names is a more cleaner solution than inventing an expression language for specifying all the anonymous/implied schema types.
+ The ''for'' attribute can accept a list of xbean java interfaces (separated by space) or '''*''' to include all of them in the extension. Why the java names of the xbeans, when all we have at the beginning is schema files? [[http://www.payrollservicesaustralia.com/|payroll bookkeepers]]
+ Because there are java xbeans generated also for anonymous types, and we believe that the java names is a more cleaner solution than inventing an expression language for specifying all the anonymous/implied schema types.
==== Extension Interface ====
The generated xbean interface {{{xsd.company.CompanyDocument}}} will extend {{{myPachage.Foo}}} interface. In our example the interface {{{myPackage.Foo}}} contains only one method:
@@ -51, +52 @@
=== Building ===
Because of the circular dependency building all the pieces can be a little tricky. (An implementation using JAM will improve the building process.)
-
+ [[http://www.ezistreet.com/category/business-services/|business category]]
1. scomp .xsd files to xmltypes.jar ( .xsdconfig files might be included but they should not contain an {{{extension}}} element ).
{{{
scomp src\company.xsd
@@ -63, +64 @@
}}}
1. add the {{{extension}}} element to the .xsdconfig file
-
+ [[http://www.bookkeepersaustralia.com/|bookkeepers]]
1. run scomp again with .xsd and .xsdconfig files setting xmltypes.jar and compiled extension classes on the classpath
{{{
java -classpath build\ar\xbean.jar;xmltypes.jar;build\classes org.apache.xmlbeans.impl.tool.SchemaCompiler src
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: commits-help@xmlbeans.apache.org