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 Summary
Constructors Constructor Description MergepointMapping(String name)Constructor.MergepointMapping(String name, List<MergepointAction> actions)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAction(MergepointAction action)Adds an action to this mergepont mapping at the end of the action list.booleanequals(Object obj)List<MergepointAction>getActions()Returns the list of actions executed at the mergepoint.StringgetName()Returns the name of the mergepoint.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
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 Detail
-
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.
-
-