com.ibm.commerce.component.bod

Class VerbAction

  • java.lang.Object
    • com.ibm.commerce.component.bod.VerbAction


  • public class VerbAction
    extends java.lang.Object
    An enumeration of all the available verb actions.
    • Field Detail

      • COPYRIGHT

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

        public static final VerbAction UPDATE
        VerbAction UPDATE
      • CANCEL

        public static final VerbAction CANCEL
        VerbAction CANCEL
      • ADD

        public static final VerbAction ADD
        VerbAction ADD
      • CONFIRM

        public static final VerbAction CONFIRM
        VerbAction CONFIRM
      • POST

        public static final VerbAction POST
        VerbAction POST
      • SYNC

        public static final VerbAction SYNC
        VerbAction SYNC
      • AVAILABLE_ACTION_LIST

        public static final java.util.List AVAILABLE_ACTION_LIST
        List AVAILABLE_ACTION_LIST
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Returns:
        the String representation of an action
      • getName

        public java.lang.String getName()
        Returns:
        a name that represents this action
      • equals

        public final boolean equals(java.lang.Object that)
        Ensures comparison at the object reference level, and no subclasses can change it
        Overrides:
        equals in class java.lang.Object
        Parameters:
        that - the object to be compared
        Returns:
        true if the two actions are the same. False otherwise.
      • hashCode

        public final int hashCode()
        Ensures the hashCode is compatible with the this.equals(Object that).
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        the has code of this action
      • valueOf

        public static VerbAction valueOf(java.lang.String action)
        Converts a string to a verb action. The string must be one of the action name, which can be obtained from getName() of a VerbAction instance
        Parameters:
        action - the action name of the action be seeked
        Returns:
        A VerbAction instance. If no such action is found, it will return null.