generateBinFiles()

Generates files objects.

Syntax

public ContentMetaData generateBinDefs(String[] strNames);

Parameters

strNames [ ]
Is an array of String objects. This argument is not currently used.

Return values

A ContentMetaData object, which describes the generated file objects.

Exceptions

ODKException
Thrown if the generation of the binary files fails.

Notes

The purpose of the generateBinFiles() method depends on the content protocol that the ODA uses for generation of file ( ContentType.BinaryFile) content, as follows:

If the ODA generates files "on request", the generateBinFiles() method is the content-generation method for the IGeneratesBinFiles interface. It can create file objects that contain information about the business-object-definition-generation process. Business Object Wizard calls the generateBinFiles() method to generate content (if the ODA supports generation of file content). It calls this method in Step 5, Generating Business Objects, of its start.

For the on-request protocol, this method does not actually return the generated content. Instead, it returns a content-metadata (ContentMetaData) object, which contains information that describes the generated content. From this returned content-metadata object, Business Object Wizard can determine whether the content-generation process is complete. When generation is complete, Business Object Wizard obtains the generated file objects with the getBinFiles() method. For more information on how to implement generateBinFiles(), see Generating files..

See also

generateBoDefs(), getBinFile()

Copyright IBM Corp. 1997, 2004