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.
-
Interface Summary Interface Description AnnotationBuilder This interface is a hook for (external) tools to add annotations to classes, fields and enums during the XML code generation process.BindingComponent This interface is the abstraction of any type of source that can interact with the Source Code Generator.ClassInfoResolver A class for "caching" ClassInfo's which later need to be resolved (retrieved) by another ClassInfo.SourceGeneratorConstants Defines contants used throughout source generation. -
Class Summary Class Description BuilderConfiguration The configuration for the SourceGenerator.BuilderConfiguration.Property Names of properties used in the configuration file.FactoryState A class used to save State information for the SourceFactory.GroupNaming A simple class used for creating class names for unnamed Groups in XML Schema.JClassRegistry A registry for maintaing information aboutJClass
instances already processed.SGStateInfo A class for maintaining state for the SourceGenerator.SGTypes A collection of type definitions and factory methods to create those types, as used by the XML code generator of Castor during code generation.SingleClassGenerator Writes a single class (and any associated inner classes) to a file.SourceGenerator A Java Source generation tool which uses XML Schema definitions to create an Object model.SourceGeneratorMain Main line method for command-line invokation of the source generation tool.TypeConversion A class used to convert XML Schema SimpleTypes into the appropriate XSType.TypeConversion.TypeNames Constants.