com.ibm.mm.sdk.common
Class DKNVPair
java.lang.Object
|
+--com.ibm.mm.sdk.common.DKNVPair
- All Implemented Interfaces:
- DKMessageId, java.io.Serializable
- public class DKNVPair
- extends java.lang.Object
- implements DKMessageId, java.io.Serializable
DKNVPair is a class to hold an abitrary name and value pair. It is frequently
used to pass parameters with varying numbers, names, and types.
As the name suggests, DKNVPair
has two parts; name and value.
The name is a string name of the object stored in the value part, whereas
the value refers to the named object itself.
- See Also:
- Serialized Form
Fields inherited from interface com.ibm.mm.sdk.common.DKMessageId |
For details, see the class or interface |
Constructor Summary |
DKNVPair(java.lang.String name,
java.lang.Object value)
Constructs a DKNVPair object using the given name and value pair. |
Method Summary |
java.lang.String |
getName()
Gets the name assigned to the object in this DKNVPair. |
java.lang.Object |
getValue()
Gets the object stored in this DKNVPair. |
void |
set(java.lang.String name,
java.lang.Object value)
Sets (stores) an object and its name to this DKNVPair. |
void |
setName(java.lang.String name)
Sets (assigns) a name for the object in this DKNVPair. |
void |
setValue(java.lang.Object value)
Sets (stores) an object to this DKNVPair. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DKNVPair
public DKNVPair(java.lang.String name,
java.lang.Object value)
- Constructs a DKNVPair object using the given name and value pair.
- Parameters:
name
- the name.value
- the value.
getName
public java.lang.String getName()
- Gets the name assigned to the object in this DKNVPair.
- Returns:
- the name
setName
public void setName(java.lang.String name)
- Sets (assigns) a name for the object in this DKNVPair.
- Parameters:
name
- the name
getValue
public java.lang.Object getValue()
- Gets the object stored in this DKNVPair.
- Returns:
- the object
setValue
public void setValue(java.lang.Object value)
- Sets (stores) an object to this DKNVPair.
- Parameters:
value
- the object
set
public void set(java.lang.String name,
java.lang.Object value)
- Sets (stores) an object and its name to this DKNVPair.
- Parameters:
name
- the namevalue
- the object
(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.