Table 81 summarizes the member variables of the ContentMetaData class.
Member variable | Description | Page |
---|---|---|
contentType | Indicates the content type for the generated content. | contentType |
count | Specifies the total number of content elements in the requested content. | count |
length | Specifies the total length, in bytes, of the requested content. | length |
public ContentType contentType
The contentType member variable is a ContentType object that indicates the content type of the generated content that this content metadata describes. It must be set to the content type appropriate for the generated content, as Table 82 shows.
Content type | Value of contentType member variable |
---|---|
Business object definitions | ContentType.BusinessObject |
Binary files | ContentType.BinaryFile |
For example, when an ODA completes content generation, it must return a content-metadata object whose contentType member variable corresponds to the type of content generated.
public long count
Specifies the total size of the requested content, in bytes. If the content's length is unknown, assign a length of zero (0).
Business Object Wizard does not currently use the length member variable. Therefore, this member variable should be initialized to a "null" value, such as zero (0) or -1.
public long length