xmlbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Xmlbeans Wiki] Update of "ExtensionInterfacesFeature" by GavinMcDonald
Date Thu, 22 Dec 2011 23:19:40 GMT
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 GavinMcDonald:
http://wiki.apache.org/xmlbeans/ExtensionInterfacesFeature?action=diff&rev1=26&rev2=27

      </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:
@@ -52, +51 @@

  
  === 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
@@ -64, +63 @@

  }}}
  
   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


Mime
View raw message