public class ActivityDataNameValuePairs
extends java.lang.Object
implements java.io.Serializable
ActivityData
but implemented with an array of name-value pairs
as per Web service requirements.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
ActivityDataNameValuePairs()
The do-nothing zero-argument constructor.
|
Modifier and Type | Method and Description |
---|---|
NameValuePair[] |
getNVPs()
Gets the complete parameter set.
|
NameValuePair |
getNVPs(int index)
Gets the name-value pair at a given index.
|
boolean |
isTemporary()
Checks whether the token to be created using this activity data is temporary.
|
void |
setNVPs(int index,
NameValuePair pair)
Sets the name-value pair at a given index.
|
void |
setNVPs(NameValuePair[] pairs)
Sets the complete parameter set.
|
void |
setTemporary(boolean bool)
Sets whether the token to be created using this activity data is temporary.
|
com.ibm.commerce.component.contextservice.ActivityData |
toActivityData()
Converts the parameter set from an array of name-value pairs into an
ActivityData object. |
java.util.Map |
toMap()
Converts the parameter set from an array of name-value pairs into a map.
|
public static final java.lang.String COPYRIGHT
public ActivityDataNameValuePairs()
public NameValuePair[] getNVPs()
public void setNVPs(NameValuePair[] pairs)
pairs
- the parameter set as an array of name-value pairspublic NameValuePair getNVPs(int index)
the
- indexpublic void setNVPs(int index, NameValuePair pair)
the
- indexpair
- the name-value pairpublic java.util.Map toMap()
public com.ibm.commerce.component.contextservice.ActivityData toActivityData()
ActivityData
object.ActivityData
objectpublic void setTemporary(boolean bool)
bool
- true
for temporary; false
otherwisepublic boolean isTemporary()
true
if the token is temporary; false
otherwise