Generate Java Code for XML Pipeline

You use the Generate Java Code for XML Pipeline dialog box to specify the properties you want to use when generating Java code for your XML pipeline.


Target directory

The target directory in which you want the Java code created. c:\temp\myPipelineJavaCode, for example. If the directory you name does not exist, Stylus Studio creates it when you run the Java Code Generation wizard. The default is . , which places the generated code in the same directory as the .pipeline file.

Package name

Stylus Studio uses the package name to create a folder in the target directory you specify. If you specify myPackage as the package name, for example, the generated code is written to c:\temp\myPipelineJavaCode\myPackage. (Though optional, it is considered good practice to create a package name.)

Class name

Stylus Studio uses the class name for the .java file created by the Java Code Generation wizard. For example, if you provide the name myClass, Stylus Studio creates c:\temp\myPipelineJavaCode\myPackage\ Stylus Studio uses the XML pipeline name as the default class name.

Add to generated to the current project

Whether or not you want to add the generated code to the current project. If you select this option (it is on by default), the package structure (com.mycompany.payroll, for example) is used to create a series of project folders at the current project's root (com\mycompany\payroll, for example). If you use the default package (none), the file is added under the project's root.

Execution log

Specifies the argument for the setExecutionLog method in the generated application. Choices are System.out (the default), System.err, and Quiet.

Generate inline code

Whether or not you want to generate inline code. Inline code can be run anywhere, as-is. If you choose not to generate inline code, you must ensure that the XML Pipeline Java libraries, xmlpipeline.jar, is in your system's classpath.

Embed the XQuery source in the generated program

Whether or not you want to embed the XQuery source in the generated Java code. This option is available when using either the Saxon XQuery or DataDirect XQuery processors. This option is available only if the Generate inline code check box is selected.

For More Information

Generating Code for an XML Pipeline

Execution Framework and Code Generation

Specifying an Execution Framework

Deployment Considerations

Free Stylus Studio XML Training:
W3C Member