org.specrunner.plugins.core.var
Class AbstractPluginDefine
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.AbstractPluginDual
org.specrunner.plugins.core.var.AbstractPluginDefine
- All Implemented Interfaces:
- IParameterHolder, IActionType, IParalelPlugin, IPlugin, ISleepPlugin, ITestPlugin, ITimedPlugin, IWaitPlugin
- Direct Known Subclasses:
- PluginDefineCondition, PluginDefineGlobal, PluginDefineLocal, PluginExecute
public abstract class AbstractPluginDefine
- extends AbstractPluginDual
Defines variables.
- Author:
- Thiago Santos
| Methods inherited from class org.specrunner.plugins.core.AbstractPlugin |
copy, 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 |
AbstractPluginDefine
public AbstractPluginDefine()
getActionType
public ActionType getActionType()
- Description copied from interface:
IActionType
- Get the plugin type.
- Returns:
- The type.
isEval
public boolean isEval()
- Description copied from class:
AbstractPluginValue
- Says if the content must be evaluated as an expression.
- Overrides:
isEval in class AbstractPluginValue
- Returns:
- true, if evaluate is enable, false, otherwise. Default is false.
operation
protected boolean operation(Object obj,
IContext context)
- Description copied from class:
AbstractPluginDual
- Stand for the testing operation.
- Specified by:
operation in class AbstractPluginDual
- Parameters:
obj - The value to be used.context - The context.
- Returns:
- true status must be OK, false otherwise, in which case error
should be set.
getError
protected Exception getError()
- Description copied from class:
AbstractPluginDual
- Gets the error, if the
operation returns false.
- Specified by:
getError in class AbstractPluginDual
- Returns:
- The failure.
Copyright © 2014. All rights reserved.