1.0.0

org.eclipse.soda.dk.testmanager.action
Class AbstractAction

java.lang.Object
  extended by org.eclipse.soda.dk.testmanager.action.AbstractAction
All Implemented Interfaces:
Action
Direct Known Subclasses:
ConfigurationAction, TestAction

public abstract class AbstractAction
extends java.lang.Object
implements Action

Since:
1.0
Version:
1.2.0

Constructor Summary
protected AbstractAction(java.lang.String id)
          Constructs an instance of this class from the specified id parameter.
 
Method Summary
static void execute(TestScriptService testScript, Action action)
          Execute with the specified test script and action parameters.
 java.lang.String getId()
          Gets the ID (String) value.
 Action getParentAction()
          Gets the parent action (Action) value.
protected  void handleScriptActionError(TestScriptService testScript, java.lang.String detail)
          Handle script action error
 void setParentAction(Action parentAction)
          Sets the parent action value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.soda.dk.testmanager.action.Action
addCounts, execute, getDescription
 

Constructor Detail

AbstractAction

protected AbstractAction(java.lang.String id)
Constructs an instance of this class from the specified id parameter.

Parameters:
id - The ID (String) parameter.
Method Detail

execute

public static void execute(TestScriptService testScript,
                           Action action)
                    throws java.lang.InterruptedException
Execute with the specified test script and action parameters.

Parameters:
testScript - The test script (TestScriptService) parameter.
action - The action (Action) parameter.
Throws:
java.lang.InterruptedException - Interrupted Exception.

getId

public java.lang.String getId()
Gets the ID (String) value.

Specified by:
getId in interface Action
Returns:
The id (String) value.

getParentAction

public Action getParentAction()
Gets the parent action (Action) value.

Specified by:
getParentAction in interface Action
Returns:
The parent action (Action) value.
See Also:
setParentAction(Action)

handleScriptActionError

protected void handleScriptActionError(TestScriptService testScript,
                                       java.lang.String detail)
Handle script action error

Parameters:
testScript - The test script (TestScriptService) parameter.
detail - The detail (String) parameter.

setParentAction

public void setParentAction(Action parentAction)
Sets the parent action value.

Specified by:
setParentAction in interface Action
Parameters:
parentAction - The parent action (Action) parameter.
See Also:
getParentAction()

1.0.0

Copyright (c) 2007, 2009 IBM