Package com.sun.tools.xjc

Schema to Java compiler

See:
          Description

Class Summary
ConsoleErrorReporter ErrorReceiver that prints to a PrintStream.
Driver CUI of XJC.
Driver.OptionsEx Command-line arguments processor.
ErrorReceiver Implemented by the driver of the compiler engine to handle errors found during the compiliation.
Messages Formats error messages.
ModelLoader Builds a Model object.
Options Global options.
Plugin Add-on that works on the generated source code.
ProgressCodeWriter CodeWriter that reports progress to XJCListener.
SchemaCache Wraps a JAXP Schema object and lazily instanciate it.
XJC2Task XJC task for Ant.
XJCListener Call-back interface that can be implemented by the caller of Driver to receive output from XJC.
 

Enum Summary
Language Type of the schema language.
 

Exception Summary
AbortException Signals the abortion of the compilation.
BadCommandLineException Signals a bad command line argument.
 

Package com.sun.tools.xjc Description

Schema to Java compiler

.

This module contains the code that implements the schema compiler 'XJC'.

XJC Architecture Diagram

Overview

XJC consists of the following major components.

Schema reader
Schema readers read XML Schema documents (or DTD, RELAX NG, ...) and builds a model.
Model
Model represents the 'blueprint' of the code to be generated. Model talks in terms of higher level constructs like 'class' and 'property' without getting too much into the details of the Java source code.
Code generator
Code generators use a model as an input and builds Java code AST into CodeModel. It also produces an Outline which captures this work.
Outline
Outline can be thought as a series of links between a model and CodeModel.