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.Serializable
    CM8 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.String getName()
      Returns the name (key) of this pair.
      java.lang.Object getValue()
      Returns the value associated with this pair.
      void set(java.lang.String name, java.lang.Object value)
      Sets both the name and value of this pair in a single operation.
      void setName(java.lang.String name)
      Sets the name (key) of this pair.
      void setValue(java.lang.Object value)
      Sets the value associated with this pair.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 pair
        value - 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 name
        value - the new value
Copyright © 2024 IBM Corporation

Copyright © 2024 IBM Corporation. All rights reserved.