|
||||||||||
| 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.flow.PluginIfBranch
public abstract class PluginIfBranch
Performs the branch selection.
| Field Summary | |
|---|---|
static String |
CSS_RELEGATED
CSS style for unselected branch. |
static String |
CSS_SELECTED
CSS style for selected branch. |
static String |
FEATURE_HIDE
Feature to set invalid branch. |
| Fields inherited from class org.specrunner.plugins.core.AbstractPlugin |
|---|
FEATURE_CONDITION, FEATURE_NORMALIZED, FEATURE_SLEEP, FEATURE_THREADSAFE, FEATURE_TIMEOUT, FEATURE_WAIT |
| Constructor Summary | |
|---|---|
PluginIfBranch()
|
|
| Method Summary | |
|---|---|
ENext |
doStart(IContext context,
IResultSet result)
Performs the start action. i.e. create a database schema. |
protected void |
encapsule(IContext context,
Boolean condition)
Wrap the node with 'selected' or 'unselected' flag, and hide or not the unselected branch. |
protected abstract boolean |
expected()
Return the expected branch condition. |
ActionType |
getActionType()
Get the plugin type. |
Boolean |
getHide()
Gets the hide status. |
void |
initialize(IContext context)
Initialize the plugin. |
void |
setHide(Boolean hide)
Sets the hide status of unselected branches. |
| 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, 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_SELECTED
public static final String CSS_RELEGATED
public static final String FEATURE_HIDE
| Constructor Detail |
|---|
public PluginIfBranch()
| Method Detail |
|---|
public Boolean getHide()
public void setHide(Boolean hide)
hide - true, to hide, false, otherwise.public ActionType getActionType()
IActionType
public void initialize(IContext context)
throws PluginException
IPlugin
initialize in interface IPlugininitialize in class AbstractPlugincontext - The test context.
PluginException - On initialization errors.
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.
protected void encapsule(IContext context,
Boolean condition)
context - The context.condition - The condition.protected abstract boolean expected()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||