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 darrensy
Date Sun, 11 Dec 2011 09:14:22 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 darrensy:
http://wiki.apache.org/xmlbeans/ExtensionInterfacesFeature?action=diff&rev1=23&rev2=24

   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:
+ The generated xbean interface {{{xsd.company.CompanyDocument}}} will extend {{{myPachage.Foo}}}
interface. In our example the interface {{{myPackage.Foo}}} contains only one method: 
  
  {{{
      String foo(String s);
  }}}
  ==== Extension Handler ====
- In the xbean implementation class {{{xsd.company.impl.CompanyDocumentImpl}}} methods will
get generated to implement the extension interface and they will delegate to the extension
handler methods.
+ In the xbean implementation class {{{xsd.company.impl.CompanyDocumentImpl}}} methods will
get generated to implement the extension interface and they will delegate to the extension
handler methods. [[http://www.caldwells.com/products/doors-by-type/entry-exterior-doors/|entry
doors]]
+ 
  
  The handler {{{myPackage.FooHandler}}} has to contain a public static method with the same
name as the interface method, with the first parameter of type !XmlObject, followed by the
parameters of the interface method:
  
@@ -64, +65 @@

  }}}
  
   1. add the {{{extension}}} element to the .xsdconfig file
- [[http://www.bookkeepersaustralia.com/|bookkeepers]]
+ [[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