com.ibm.mm.sdk.common
Class DKNVPair
- java.lang.Object
-
- com.ibm.mm.sdk.common.DKNVPair
-
- All Implemented Interfaces:
- java.io.Serializable
public class DKNVPair extends java.lang.Object implements java.io.SerializableCM8 Name-Value Pair - Represents a name-value pair for passing parameters and options.This class provides a simple container for associating a string name with an arbitrary object value. It is commonly used throughout the CM8 API for:
- Query parameters and options
- Retrieve options
- Configuration settings
- Method parameters that require flexible key-value associations
The class is serializable to support distributed operations and persistence.
- See Also:
DKRetrieveOptionsICM,dkQueryManager, Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description DKNVPair(java.lang.String name, java.lang.Object value)Constructs a new name-value pair with the specified name and value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetName()Returns the name (key) of this pair.java.lang.ObjectgetValue()Returns the value associated with this pair.voidset(java.lang.String name, java.lang.Object value)Sets both the name and value of this pair in a single operation.voidsetName(java.lang.String name)Sets the name (key) of this pair.voidsetValue(java.lang.Object value)Sets the value associated with this pair.
-
-
-
Constructor Detail
-
DKNVPair
public DKNVPair(java.lang.String name, java.lang.Object value)Constructs a new name-value pair with the specified name and value.- Parameters:
name- the name (key) of this pairvalue- the value associated with the name
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name (key) of this pair.- Returns:
- the name
-
getValue
public java.lang.Object getValue()
Returns the value associated with this pair.- Returns:
- the value object
-
setName
public void setName(java.lang.String name)
Sets the name (key) of this pair.- Parameters:
name- the new name
-
setValue
public void setValue(java.lang.Object value)
Sets the value associated with this pair.- Parameters:
value- the new value
-
set
public void set(java.lang.String name, java.lang.Object value)Sets both the name and value of this pair in a single operation.- Parameters:
name- the new namevalue- the new value
-
-