org.specrunner.plugins.core.include
Class PluginImport
java.lang.Object
org.specrunner.parameters.core.ParameterHolder
org.specrunner.plugins.core.AbstractPlugin
org.specrunner.plugins.core.AbstractPluginNamed
org.specrunner.plugins.core.AbstractPluginScoped
org.specrunner.plugins.core.AbstractPluginValue
org.specrunner.plugins.core.include.PluginImport
- All Implemented Interfaces:
- IParameterHolder, IActionType, IParalelPlugin, IPlugin, ISleepPlugin, ITestPlugin, ITimedPlugin, IWaitPlugin
public class PluginImport
- extends AbstractPluginValue
Add package information as SLIM import tables. Imports can also be performed
simply by adding attribute 'imports' to any element.
Imports can be performed:
-
in blocks, i.e.
<.. imports="package1;package2;...;packageN"/>
on every valid tag;
- in tables, i.e.
In columns
<table class="imports">
<tr><td>package1</td><td>...</td><td>packageN</td></tr>
</table>
or in rows
<table class="imports">
<tr><td>package1</td></tr>
<tr><td>...</td></tr>
<tr><td>packageN</td></tr>
</table>
- in free tags, i.e.
<imports>package1;...;packageN<imports>
- Author:
- Thiago Santos
| Methods inherited from class org.specrunner.plugins.core.AbstractPlugin |
copy, doEnd, getCondition, getConditionModel, getNormalized, getNormalized, getParent, getSleep, getSleepModel, getThreadsafe, getTimeout, getTimeoutModel, getWait, getWaitModel, initialize, setCondition, setConditionModel, setNormalized, setParent, setSleep, setSleepModel, setThreadsafe, setTimeout, setTimeoutModel, setWait, setWaitModel, toString |
PACKAGES_NAME
public static final String PACKAGES_NAME
- The import list name.
- See Also:
- Constant Field Values
PluginImport
public PluginImport()
getActionType
public ActionType getActionType()
- Description copied from interface:
IActionType
- Get the plugin type.
- Returns:
- The type.
getImports
public String getImports()
- Get the list of imports.
- Returns:
- The import list.
setImports
public void setImports(String imports)
- Set the list of imports.
- Parameters:
imports - The import list separated by ';'.
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.
getPackages
public static List<String> getPackages(IContext context)
- Recover the package list in context, if any. Empty list if not found.
- Parameters:
context - Context.
- Returns:
- The package list, if exists, false, otherwise.
Copyright © 2014. All rights reserved.