Java API Package Worksheet
Introduction
A Java API Package Worksheet describes how AlchemyJ Compiler should generate a Java package. It defines the name of the package, the classes it contains and properties for the unit test project.
It contains the following sections:
Basic Settings
Define the basic information of a Java Package.
Item | Description |
---|---|
Package Name | Define the name of this Java Package. For example, com.company.myfirstjavaproject. |
Jar name | If you want to generate a Jar file (Source Type is Jar). Define it here. |
Version | Version number of this Java Project. The user of this API may use the version number to specify which version of the API to import from a Maven Repository. |
Classes
It defines the Class Definition Sheet(s) name included in this Java Package.
Unit Test Settings
This section defines the settings for Unit Test. Refer to Testing Tool for test steps.
Properties | Description |
---|---|
Resource path | Path of unit test resource files. This folder path specifies where unit test data files should be loaded. |
Resource date format | The date format for date conversion. Default is yyyy-MM-dd HH:mm:ss |
Throw exception on input array overflow | Yes - return errors when the size of input array is larger than the defined input range of the function point. No - Only the data within the input range will be accepted as input parameters for the function point. |
Generate Excel dump file | Yes - Generate an Excel file that represents the workbook in memory. It is like a snapshot of the model after a method is run. No - Do not generate the Excel file. |
Maven Dependency
If your model uses ajCustomFunction to call other Java packages, you should define them in Maven Dependency section. When AlchemyJ generates the API, it will include the related packages into the project. Each row in the table refers to one package.
Item | Description |
---|---|
Maven Group ID | Define a Group ID for the dependent package. It should follow Java's package name rules. You can use the same value as the package name. |
Maven Artifact ID | Define a unique Artifact ID for the depended project. The Group ID and Artifact ID together should uniquely identify this project across all projects. |
Maven Version | Version number of the dependent Java Project. The user of this API can use the version number to specify which version of the API to import from a Maven Repository. |
Scope | compile - The dependency is required for compilation and execution. runtime - The dependency is not required for compilation but required for execution. provided - The dependency will be provided by the application server. The default is compile. |
Advance Settings
Item | Description |
---|---|
Maven Group ID | Define a Group ID for this package. It should follow Java's package name rules. You can use the same value as the package name. |
Maven Artifact ID | Define a unique Artifact ID for this project. The Group ID and Artifact ID together should uniquely identify this project across all projects. |