Package org.exolab.castor.builder
Castor XML code generator
- Version:
- $Revision: 6713 $
- Author:
- Keith Visco
- Author:
- Arnaud Blandin
This package is primarily used with Castor XML, however some people do use it for Castor JDO. Some incompatabilities may exist.
The class SourceGenerator
is used for creating Java source code from an XML Schema. Currently
the version of XML Schema that is supported by the SourceGenerator is
a subset of the W3C XML Schema 1.0 Recommendation (20010502).
A binding file can be used to customize
the generated sources. More information may be obtained in the Castor documentation.
The class SourceGeneratorMain
is the main(String[]) entry point used when invoking the source generator
from the command line. This class parses the command-line arguments,
sets up the proper configuration, and then passes control to
org.exolab.castor.builder.SourceGenerator
.
The file org/exolab/castor/builder/castorbuilder.properties is used for configuring some advanced options.
-
ClassDescriptionThis interface is a hook for (external) tools to add annotations to classes, fields and enums during the XML code generation process.This interface is the abstraction of any type of source that can interact with the Source Code Generator.The configuration for the SourceGenerator.Names of properties used in the configuration file.A class for "caching" ClassInfo's which later need to be resolved (retrieved) by another ClassInfo.A class used to save State information for the SourceFactory.A simple class used for creating class names for unnamed Groups in XML Schema.A registry for maintaing information about
JClass
instances already processed.A class for maintaining state for the SourceGenerator.A collection of type definitions and factory methods to create those types, as used by the XML code generator of Castor during code generation.Writes a single class (and any associated inner classes) to a file.A Java Source generation tool which uses XML Schema definitions to create an Object model.Defines contants used throughout source generation.Main line method for command-line invokation of the source generation tool.A class used to convert XML Schema SimpleTypes into the appropriate XSType.Constants.