com.ibm.commerce.experimentation.dependency

Class DynamicKey

  • java.lang.Object
    • com.ibm.commerce.experimentation.dependency.DynamicKey


  • public abstract class DynamicKey
    extends java.lang.Object
    This class contains all of the identifiers which uniquely define business objects to be referenced by experiments. To add a new business object, extend this abstract class to provide a custom implementation of the required key fields, and a method that populates this object from an XML element.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
    • Constructor Summary

      Constructors 
      Constructor and Description
      DynamicKey() 
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Object getObjectId()
      This method returns the unique ID of the object associated with this key class.
      abstract void populateKeyFromElement(org.w3c.dom.Element keyElement)
      This method populates the custom key object from an element in the experiment rule XML document.
      void setObjectId(java.lang.Object newObjectId)
      This method sets the unique ID of the object associated with this key class.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DynamicKey

        public DynamicKey()
    • Method Detail

      • populateKeyFromElement

        public abstract void populateKeyFromElement(org.w3c.dom.Element keyElement)
        This method populates the custom key object from an element in the experiment rule XML document.
        Parameters:
        keyElement - An XML element that contains key data.
      • getObjectId

        public java.lang.Object getObjectId()
        This method returns the unique ID of the object associated with this key class.
        Returns:
        The unique ID of the object.
      • setObjectId

        public void setObjectId(java.lang.Object newObjectId)
        This method sets the unique ID of the object associated with this key class.
        Parameters:
        newObjectId - The unique ID of the object.