Table 83 summarizes the methods of the ContentMetaData class.
Member method | Description | Page |
---|---|---|
ContentMetaData() | Creates a content-metadata object. | ContentMetaData() |
badContent() | Returns a content-metadata object that indicates the ODA is unable to generate the specified content type. | badContent() |
contentNotReady() | Returns a content-metadata object that indicates the ODA is not yet finished with the content generation. | contentNotReady() |
contentUnavailable() | Returns a content-metadata object that indicates the ODA is not generating the specified content, even though it implements the corresponding interface. | contentUnavailable() |
Creates a content-metadata object.
public ContentMetaData(ContentType contentType, long length, long count);
A newly instantiated ContentMetaData object.
public static ContentMetaData badContent(ContentType contentType);
A ContentMetaData object that describes the unsuccessfully generated content.
public static ContentMetaData contentNotReady(ContentType contentType);
A ContentMetaData object that describes the incompletely generated content.
public static ContentMetaData contentUnavailable(ContentType contentType);
A ContentMetaData object that describes the unavailable generated content.
The contentUnavailable() method indicates that the ODA does not generate content of the contentType content type. For example, if an ODA supports only a callback content protocol for a particular content type, Business Object Wizard never calls its content-generation method (generateBoDefs() for business-object-definition content or generateBinFiles() for binary-file content). Therefore, the content-generation method can call contentUnavailable() as its return value to Business Object Wizard.