Java Code Generation

 

The Java Code Generation wizard is available only in Stylus Studio XML Enterprise Edition.

You use the Java Code Generation dialog box to specify the package and class names and other options for generating Java code from XQuery and XSLT.

Fields

Target directory

The directory to which you want to write the code generated from the XQuery or XSLT. You can type a directory path by hand, or use the browse button ( ) to select a file system directory. The default is a \sources directory, which is created where you installed Stylus Studio when you generate the code, c:\Program Files\Stylus Studio\sources, for example.

Package name

The name you want to use for the Java package generated from the XQuery or XSLT. Left blank by default.

Class name

The name you want to use for the Java class generated from the XQuery or XSLT. By default, this is the name of the XQuery or XSLT document for which you are generating Java code.

Options

These options affect the content of the generated code and whether or not the generated code is added to the current project.

Make the class public - Whether or not you want to make the generated classes public. By default, all classes are generated as public.

Include main(String[ ] args) method - Whether or not you want to include the main method in the generated code. If you will be calling the generated code from another application, you do not need to select this option.

Add generated code 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 name .java file is added under the project's root.

Generate code for these scenarios

List box displaying the scenarios associated with the source XQuery or XSLT document. Only those scenarios that use a processor that supports Java code generation are displayed in this list box. By default, only the current scenarios is selected for generation.

For More Information

Generating Java Code for XQuery

Generating Java Code for XSLT

Java XML Parser

Stylus Studio's support for Java XML Parser is able to Validate XML Using any Java XML Parser, Edit, Debug, Profile and Map XSLT using any Java XSLT Processor, Create PDF files Using Apache FOP, hand have Support for Microsoft XML Parsers as well.

Berkeley DB XML and Stylus Studio

Develop XML applications for Berkeley DBXML with Stylus Studio integrated tools support for SleepyCat Software's DBXML. Open, Query and Save XML to and from Berkeley DB XML directly from within the Stylus Studio XML IDE.

XML Schema Validator, DTD Validator

Stylus Studio lets you validate XML documents using integrated XML Schema or DTD validators. Use the Stylus Studio built-in validator, or any number of supported XML parsers and XML validators like MSXML SAX and DOM, Xerces, .NET, and more!

Support for DataDirect SequeLink

Learn about Stylus Studio's support for DataDirect SequeLink, an end-to-end database middleware solution that provides a universal thin client for ODBC, JDBC, ADO or .NET, providing flexibility for both client- and server-based deployments.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member