org.specrunner.plugins.core.var
Class AbstractPluginDefine

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.AbstractPluginValue
                      extended by org.specrunner.plugins.core.AbstractPluginDual
                          extended by 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

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
AbstractPluginDefine()
           
 
Method Summary
 ActionType getActionType()
          Get the plugin type.
protected  Exception getError()
          Gets the error, if the operation returns false.
 boolean isEval()
          Says if the content must be evaluated as an expression.
protected  boolean operation(Object obj, IContext context)
          Stand for the testing operation.
 
Methods inherited from class org.specrunner.plugins.core.AbstractPluginDual
doEnd, doStart, getObjectValue, getOnstart, perform, setOnstart
 
Methods inherited from class org.specrunner.plugins.core.AbstractPluginValue
getValue, getValue, setEval, setValue
 
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, 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
 

Constructor Detail

AbstractPluginDefine

public AbstractPluginDefine()
Method Detail

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.