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 generated 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 page 1.



Enter Borland XML databinding settings

DTD And Class Information

DTD File

Enter the path and name of the DTD output file or browse to it 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.

Package

Enter the package name for the generated classes.

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

Schema And Class Information

XML Schema

Enter the name and path of the existing schema file (.xsd) or browse to it 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.

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.