setName

The setName method defines the name component of a NameValuePair object.

setName(name)
  • name-a string containing the name component of a NameValuePair object.

Return value

None.

Example

The following example shows how to define the name component of a NameValuePair.

NameValuePair custId = new NameValuePairImpl();
custId.setName("CustomerId");
custId.setValueAsNumeric(1.0);
custId.setValueDataType(NameValuePair.DATA_TYPE_NUMERIC);
NameValuePair[] initialAudienceId = { custId };