In this example de.recomverlag.rxe.flatfile.tools.RXEBase bocomes the base
class of all implementation classes generated from JAXB. There is no special
requirement this class has to met.
<schema
targetNamespace="grips://xml.recom-verlag.de/rxe/flatfile" <!-- Sample -->
xmlns="
http://www.w3.org/2001/XMLSchema"
xmlns:jxb="
http://java.sun.com/xml/ns/jaxb"
xmlns:xjc="
http://java.sun.com/xml/ns/jaxb/xjc"
xmlns:flatfile="grips://xml.recom-verlag.de/rxe/flatfile" <!-- Sample -->
jxb:extensionBindingPrefixes="xjc"
jxb:version="1.0">
<annotation>
<appinfo>
<jxb:globalBindings
fixedAttributeAsConstantProperty="true"
collectionType="java.util.LinkedList"
typesafeEnumBase="NCName"
choiceContentProperty="false"
typesafeEnumMemberName="generateError"
bindingStyle="elementBinding"
enableFailFastCheck="false"
generateIsSetMethod="false"
underscoreBinding="asCharInWord"
<xjc:superClass
name="de.recomverlag.rxe.flatfile.tools.RXEBase"/>
</jxb:globalBindings>
<jxb:schemaBindings>
<jxb:package name="de.recomverlag.rxe.flatfile"/>
</jxb:schemaBindings>
</appinfo>
</annotation>
... your stuff, as usual ...
</schema>
/*
* RXEBase.java
*
* Created on 2. April 2003, 13:31
*/
package de.recomverlag.rxe.flatfile.tools;
/**
* Base class for all classes generated from the XML scheme. Only needed for
* flatfile generation.
* @author rknoebl
*/
public class RXEBase {
public Base() {
}
// Anything you like ... As you see, there is nothing special.
// In my application I store a file offset in my "flatfile" where
// the object is stored in a propreatory format.
}
Feel free to ask for more, if this is not adequate!
Best Regards!
Reiner Kn?bl, Recom Verlag Germany GmbH