setName

setName メソッドは、NameValuePair オブジェクトの名前コンポーネントを定義します。

setName(name)
  • name - NameValuePair オブジェクトの名前コンポーネントを含む文字列。

戻り値

なし。

以下の例は、NameValuePair の名前コンポーネントを定義する方法を示します。

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