Databinding wizard

This is a feature of JBuilder Enterprise.

The Databinding wizard creates Java classes from DTDs or XML schema files. JBuilder uses BorlandXML to generate classes from a DTD and Castor to generate classes from schema.



Choose databinding option

Select the databinding framework to generate the Java classes.

Databinding Type

From the drop-down list, select the databinding type. If you are generating classes from a DTD, select BorlandXML. If you are generating classes from a schema (.xsd), select Castor.

The options on the second page depend on whether you selected BorlandXML or Castor as your databinding framework on this step.



Enter Borland XML databinding settings

Choose the DTD file and set the options for automatic class generation.

DTD And Class Information

DTD File

Click the ellipsis button, browse to the DTD output file and select it.

Note: If you select the DTD file in the project pane before running the wizard, this field is automatically filled in for you.

Root Element

Select the element from the drop-down list that you want as the root element for the XML document. The root element contains all the other elements in the document.

Package

Enter the package name for the generated classes, choose one from the drop-down list, or choose the ellipsis button and browse to it.

Identifiers

These fields generate the DOCTYPE declaration in the XML document with SYSTEM or PUBLIC identifiers.

Public

Enter the address and/or the name of the public DTD file.

System

Enter the address and/or the name of the system or local DTD file.



Enter Castor databinding settings

Choose the schema file and set the options for automatic class generation.

Schema And Class Information

XML Schema

Click the ellipsis button, browse to the existing schema file (.xsd), and select it.

Note: If you select the schema file in the project pane before running the wizard, this field is automatically filled in for you.

Package

Enter the package name for the generated classes, choose one from the drop-down list, or choose the ellipsis button and browse to it.

Options

Specify Castor options.

Use Java 2 Collections

Select whether to use Java 2 collections where appropriate.

Generate Descriptor Classes

Generates descriptor classes.

Suppress Non-Fatal Errors

Suppresses errors that aren't fatal as the Java classes are generated.

Verbose

Turns on verbosity through source generation.