| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Using the Source Code Generator
Documentation Author(s):
API Reference: News Source generation & Java 5.0 Introduction Invoking the XML code generator XML Schema NewsSource generation & Java 5.0Since release 1.0.2, the Castor source generator supports the generation of Java 5.0 compliant code. The generated code -- with the new feature enabled -- will make use of the following Java 5.0-specific artifacts:
To enable this feature (off by default), please add or uncomment the following property in your custom castorbuilder.properties file:
IntroductionCastor's Source Code Generator creates a set of Java classes which represent an object model for an XML Schema (W3C XML Schema 1.0 Second Edition, Recommendation)1, as well as the necessary Class Descriptors used by the marshaling framework to obtain information about the generated classes.
Invoking the XML code generatorThe XML code generator can be invoked in many ways, including by command line, via an Ant task and via Maven. Please follow the below links for detailed instructions on each invocation mode.
XML SchemaThe input file for the source code generator is an XML Schema2. The currently supported version is the W3C XML Schema 1.0, Second Edition Recommendation1. For more information about XML Schema Support, check the XML Schema page 1Castor supports the XML Schema 1.0 Second Edition Recommendation 2XML Schema is a W3C Recommendation 3XPath is a W3C Recommendation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||