Member variables

Table 81 summarizes the member variables of the ContentMetaData class.

Table 81. 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

contentType

Indicates the content type of the generated content.

Type

public ContentType contentType

Notes

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.

Table 82. Content-type values

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.

count

Specifies the total number of content elements in the requested content. This count value must be greater than zero (0).

Type

public long count

length

Specifies the total size of the requested content, in bytes. If the content's length is unknown, assign a length of zero (0).

Important

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.

Type

public long length

Copyright IBM Corp. 1997, 2004