com.ibm.commerce.rule

Class Action

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


    public final class Action
    extends java.lang.Object
    implements java.io.Serializable, com.ibm.websphere.cache.Sizeable
    This class describes a rule action.
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static class  Action.Parameter
      This class describes action parameters.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      Copyright.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Action(java.lang.String name, Action.Parameter[] parameters)
      This constructor takes a name and an array of parameters.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getName()
      Gets the name of the action.
      long getObjectSize()
      Returns the estimated footprint size in bytes of this object and the objects it contains.
      Action.Parameter[] getParameters()
      Gets the array of Parameter objects.
      void setName(java.lang.String name)
      Sets the name of the action.
      void setParameters(Action.Parameter[] parameters)
      Sets the array of Parameter objects.
      • Methods inherited from class java.lang.Object

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

    • Constructor Detail

      • Action

        public Action(java.lang.String name,
                      Action.Parameter[] parameters)
        This constructor takes a name and an array of parameters.
        Parameters:
        name - The name of the action.
        parameters - An array of Parameter objects.
    • 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 name of the action.
        Returns:
        The name of the action.
      • setName

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

        public Action.Parameter[] getParameters()
        Gets the array of Parameter objects.
        Returns:
        The array of Parameter objects.
      • setParameters

        public void setParameters(Action.Parameter[] parameters)
        Sets the array of Parameter objects.
        Parameters:
        parameters - An array of parameter objects.