Working with document specifications through the Java API
You can create new document specifications or load existing
document specifications and customize them by using the Java™ API.
- Creating a document specification through the Java API
Before creating a document specification, perform a Rational Publishing Engine API initialization. - Loading a document specification through the Java API
Before loading a document specification, perform a Rational Publishing Engine API initialization. - Adding a template to a new document specification through the Java API
Before adding templates to a document specification, perform a Rational Publishing Engine API initialization. - Configuring a data source through the Java API
After the document specification is loaded, you can iterate the templates and the data sources for each template. The data sources for a template are available in the RPETemplate.getDataSources() collection. After you have identified the data source, you can modify the data source properties as needed. - Configuring variables
After the document specification is loaded, you can iterate the templates and the variables for each template. The variables for a template are available in the RPETemplate.getVariables() collection. After you have identified the variables, you can modify the variable properties as needed. - Configuring outputs through the Java API
The outputs defined in the document specification are available in the RPEDocumentSpecification.getRuntime().getOutputs() collection.
Feedback