Class MergepointMapping

java.lang.Object
org.apache.torque.generator.configuration.mergepoint.MergepointMapping

public class MergepointMapping extends Object
A mapping between the name of an mergepoint and and the action which should be performed at this point.
  • Constructor Details

    • MergepointMapping

      public MergepointMapping(String name)
      Constructor.
      Parameters:
      name - the name of the mergepoint, not null.
      Throws:
      IllegalArgumentException - if name is null.
    • MergepointMapping

      public MergepointMapping(String name, List<MergepointAction> actions)
      Constructor.
      Parameters:
      name - the name of the mergepoint, not null.
      actions - the actions in this mergepoint.
      Throws:
      IllegalArgumentException - if name is null.
  • Method Details

    • getName

      public String getName()
      Returns the name of the mergepoint.
      Returns:
      the name of the mergepoint, not null.
    • getActions

      public List<MergepointAction> getActions()
      Returns the list of actions executed at the mergepoint.
      Returns:
      the list of actions. Not null, may be empty.
    • addAction

      public void addAction(MergepointAction action)
      Adds an action to this mergepont mapping at the end of the action list.
      Parameters:
      action - the action to add, not null.
      Throws:
      NullPointerException - if action is null.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object