org.specrunner.plugins.core
Class AbstractPluginTable

java.lang.Object
  extended by org.specrunner.parameters.core.ParameterHolder
      extended by org.specrunner.plugins.core.AbstractPlugin
          extended by org.specrunner.plugins.core.AbstractPluginNamed
              extended by org.specrunner.plugins.core.AbstractPluginScoped
                  extended by org.specrunner.plugins.core.AbstractPluginTable
All Implemented Interfaces:
IParameterHolder, IActionType, IParalelPlugin, IPlugin, ISleepPlugin, ITestPlugin, ITimedPlugin, IWaitPlugin
Direct Known Subclasses:
AbstractPluginObject, PluginColumn, PluginMap

public abstract class AbstractPluginTable
extends AbstractPluginScoped

Adapter for plugins on tables.

Author:
Thiago Santos

Field Summary
 
Fields inherited from class org.specrunner.plugins.core.AbstractPlugin
FEATURE_CONDITION, FEATURE_NORMALIZED, FEATURE_SLEEP, FEATURE_THREADSAFE, FEATURE_TIMEOUT, FEATURE_WAIT
 
Constructor Summary
AbstractPluginTable()
           
 
Method Summary
 void doEnd(IContext context, IResultSet result)
          The end action. i.e. after a loop specification perform something in a newly generated table.
 void doEnd(IContext context, IResultSet result, TableAdapter tableAdapter)
          Perform an ending action.
 ENext doStart(IContext context, IResultSet result)
          Performs the start action. i.e. create a database schema.
 ENext doStart(IContext context, IResultSet result, TableAdapter tableAdapter)
          Perform the plugin start action.
 void initialize(IContext context)
          Initialize the plugin.
 void initialize(IContext context, TableAdapter table)
          Initialize helper.
 String toString()
           
 
Methods inherited from class org.specrunner.plugins.core.AbstractPluginScoped
getScope, saveGlobal, saveLocal, saveStrict, setScope
 
Methods inherited from class org.specrunner.plugins.core.AbstractPluginNamed
getName, setName
 
Methods inherited from class org.specrunner.plugins.core.AbstractPlugin
copy, getCondition, getConditionModel, getNormalized, getNormalized, getParent, getSleep, getSleepModel, getThreadsafe, getTimeout, getTimeoutModel, getWait, getWaitModel, setCondition, setConditionModel, setNormalized, setParent, setSleep, setSleepModel, setThreadsafe, setTimeout, setTimeoutModel, setWait, setWaitModel
 
Methods inherited from class org.specrunner.parameters.core.ParameterHolder
getParameters, setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.specrunner.parameters.IParameterHolder
getParameters, setParameters
 
Methods inherited from interface org.specrunner.plugins.IActionType
getActionType
 

Constructor Detail

AbstractPluginTable

public AbstractPluginTable()
Method Detail

initialize

public void initialize(IContext context)
                throws PluginException
Description copied from interface: IPlugin
Initialize the plugin. Performed after set parameters.

Specified by:
initialize in interface IPlugin
Overrides:
initialize in class AbstractPlugin
Parameters:
context - The test context.
Throws:
PluginException - On initialization errors.

initialize

public void initialize(IContext context,
                       TableAdapter table)
                throws PluginException
Initialize helper.

Parameters:
context - The context.
table - The adapter.
Throws:
PluginException - On initialization errors.

doStart

public ENext doStart(IContext context,
                     IResultSet result)
              throws PluginException
Description copied from interface: IPlugin
Performs the start action. i.e. create a database schema. Performed after initialization.

Specified by:
doStart in interface IPlugin
Overrides:
doStart in class AbstractPlugin
Parameters:
context - The context.
result - The result set.
Returns:
SKIP, to skip node, DEEP, to go deep into the node.
Throws:
PluginException - On execution errors.

doStart

public ENext doStart(IContext context,
                     IResultSet result,
                     TableAdapter tableAdapter)
              throws PluginException
Perform the plugin start action.

Parameters:
context - The context.
result - The result.
tableAdapter - The adapter.
Returns:
The next action to be taken.
Throws:
PluginException - On plugin errors.

doEnd

public void doEnd(IContext context,
                  IResultSet result)
           throws PluginException
Description copied from interface: IPlugin
The end action. i.e. after a loop specification perform something in a newly generated table. Performed after doStart().

Specified by:
doEnd in interface IPlugin
Overrides:
doEnd in class AbstractPlugin
Parameters:
context - The context.
result - The result set.
Throws:
PluginException - On execution errors.

doEnd

public void doEnd(IContext context,
                  IResultSet result,
                  TableAdapter tableAdapter)
           throws PluginException
Perform an ending action.

Parameters:
context - The context.
result - The result set.
tableAdapter - The adapter.
Throws:
PluginException - On plugin errors.

toString

public String toString()
Overrides:
toString in class AbstractPlugin


Copyright © 2014. All rights reserved.