|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.parameters.core.ParameterHolder
org.specrunner.plugins.core.AbstractPlugin
org.specrunner.plugins.core.AbstractPluginNamed
org.specrunner.plugins.core.AbstractPluginScoped
org.specrunner.plugins.core.macro.PluginMacro
public class PluginMacro
The plugin which creates a macro. To defined a macro just add the class 'macro' to a tag, and add a 'name' attribute to allow further references to this macro.
| Field Summary | |
|---|---|
static String |
CSS_DEFINED
CSS of macro defined. |
| Fields inherited from class org.specrunner.plugins.core.AbstractPlugin |
|---|
FEATURE_CONDITION, FEATURE_NORMALIZED, FEATURE_SLEEP, FEATURE_THREADSAFE, FEATURE_TIMEOUT, FEATURE_WAIT |
| Constructor Summary | |
|---|---|
PluginMacro()
|
|
| Method Summary | |
|---|---|
ENext |
doStart(IContext context,
IResultSet result)
Performs the start action. i.e. create a database schema. |
ActionType |
getActionType()
Get the plugin type. |
boolean |
isGlobal()
Says is the plugin should be placed in global context or local context. |
boolean |
isRun()
Says if the macro must be execute on definition time. |
void |
setGlobal(boolean global)
Sets global flag. |
void |
setRun(boolean run)
Set run behavior. |
| 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, 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 |
| 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 |
| Field Detail |
|---|
public static final String CSS_DEFINED
| Constructor Detail |
|---|
public PluginMacro()
| Method Detail |
|---|
public boolean isRun()
public void setRun(boolean run)
run - The new run status.public boolean isGlobal()
public void setGlobal(boolean global)
global - If define global as global.public ActionType getActionType()
IActionType
public ENext doStart(IContext context,
IResultSet result)
throws PluginException
IPlugin
doStart in interface IPlugindoStart in class AbstractPlugincontext - The context.result - The result set.
PluginException - On execution errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||