Quick

Quick provides several utilities that are detailed in the text. Each one is listed here, with the options accepted by that tool.

cfgDtd2Qdml

cfgDtd2Qdml converts from a DTD into a QDML schema. Here is an example of using this tool:

[bmclaugh@aragorn]$ sh cfgDtd2Qdml.sh -in=book.dtd -out=book.qdml

Table A-4 details each option and its use.

Table A-4. Quick cfgDtd2Qdml options

Flag

Value

Purpose

-in

DTD to parse

Specify the DTD constraint set to Quick to generate QDML from.

-out

QDML file to generate

Specify the filename of the QDML schema to generate.

cfgQdml2Qjml

cfgQdml2Qjml converts from a QDML schema into a QJML binding schema. You will almost always need to make modifications to this generated binding schema to ensure it matches your specific Java classes. Here is an example of usage:

[bmclaugh@aragorn xml]$ sh cfgQdml2Qjml.sh -in=book.qdml -out=book.qjml \
    -package=javajaxb.book

Table A-5 details each option and its use.

Table A-5. Quick cfgQdml2Qjml options

Flag

Value

Purpose

-in

QDML to parse

Specify the QDML constraint set to Quick to generate QJML from.

-out

QJML file to generate

Specify the filename of the QJML binding schema to generate.

-package

Java package name

The Java package to use as a prefix for all targetClass mappings.

cfgQjml2Java

cfgQjml2Java allows generation of Java source files from a QJML binding schema.

C:\dev\javajaxb\ch09\src\xml>cfgQjml2Java -in=book.qjml -out=..\generated

Table A-6 details each option and its ...

Get Java & XML Data Binding now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.