com.ibm.commerce.rule

Class Action.Parameter

  • java.lang.Object
    • com.ibm.commerce.rule.Action.Parameter
  • All Implemented Interfaces:
    com.ibm.websphere.cache.Sizeable, java.io.Serializable
    Enclosing class:
    Action


    public static final class Action.Parameter
    extends java.lang.Object
    implements java.io.Serializable, com.ibm.websphere.cache.Sizeable
    This class describes action parameters. Parameters have a name, value and optional subparameters.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      Parameter(java.lang.String name, java.lang.String value)
      This constructor takes a parameter name and value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getName()
      Gets the parameter name.
      long getObjectSize()
      Returns the estimated footprint size in bytes of this object and the objects it contains.
      Action.Parameter[] getSubParameters()
      Gets the parameter's subparameters.
      java.lang.String getValue()
      Gets the parameter value.
      void setName(java.lang.String name)
      Sets the parameter name.
      void setSubParameters(Action.Parameter[] subParameters)
      Sets the parameter's subparameters.
      void setValue(java.lang.String value)
      Sets the parameter value.
      • Methods inherited from class java.lang.Object

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

      • Parameter

        public Parameter(java.lang.String name,
                         java.lang.String value)
        This constructor takes a parameter name and value.
    • Method Detail

      • getObjectSize

        public long getObjectSize()
        Returns the estimated footprint size in bytes of this object and the objects it contains.
        Specified by:
        getObjectSize in interface com.ibm.websphere.cache.Sizeable
        Returns:
        the estimated footprint size in bytes or -1 if a size cannot be determined.
      • getName

        public java.lang.String getName()
        Gets the parameter name.
        Returns:
        The name of the parameter.
      • setName

        public void setName(java.lang.String name)
        Sets the parameter name.
        Parameters:
        name - The name of the parameter.
      • getValue

        public java.lang.String getValue()
        Gets the parameter value.
        Returns:
        The parameter value.
      • setValue

        public void setValue(java.lang.String value)
        Sets the parameter value.
        Parameters:
        value - The parameter value.
      • getSubParameters

        public Action.Parameter[] getSubParameters()
        Gets the parameter's subparameters.
        Returns:
        An array of Parameter objects.
      • setSubParameters

        public void setSubParameters(Action.Parameter[] subParameters)
        Sets the parameter's subparameters.
        Parameters:
        subParameters - An array of Parameter objects.