org.specrunner.plugins.core.var
Class PluginExecute

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
                              extended by org.specrunner.plugins.core.var.PluginExecute
All Implemented Interfaces:
IParameterHolder, IActionType, IParalelPlugin, IPlugin, ISleepPlugin, ITestPlugin, ITimedPlugin, IWaitPlugin
Direct Known Subclasses:
PluginExecuteLatter

public class PluginExecute
extends AbstractPluginDefine

Perform a execution. If execute returns something bind it to a local variable.

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
PluginExecute()
           
 
Method Summary
protected  Object getObjectValue(IContext context, nu.xom.Node node)
          Default behavior.
protected  boolean operation(Object obj, IContext context)
          Stand for the testing operation.
 void setValue(Object value)
          Sets the value.
 
Methods inherited from class org.specrunner.plugins.core.var.AbstractPluginDefine
getActionType, getError, isEval
 
Methods inherited from class org.specrunner.plugins.core.AbstractPluginDual
doEnd, doStart, getOnstart, perform, setOnstart
 
Methods inherited from class org.specrunner.plugins.core.AbstractPluginValue
getValue, getValue, setEval
 
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

PluginExecute

public PluginExecute()
Method Detail

setValue

public void setValue(Object value)
Description copied from class: AbstractPluginValue
Sets the value.

Overrides:
setValue in class AbstractPluginValue
Parameters:
value - A new value.

getObjectValue

protected Object getObjectValue(IContext context,
                                nu.xom.Node node)
                         throws PluginException
Description copied from class: AbstractPluginDual
Default behavior.

Overrides:
getObjectValue in class AbstractPluginDual
Parameters:
context - The context.
node - The node.
Returns:
The value object.
Throws:
PluginException - On evaluation errors.

operation

protected boolean operation(Object obj,
                            IContext context)
Description copied from class: AbstractPluginDual
Stand for the testing operation.

Overrides:
operation in class AbstractPluginDefine
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.


Copyright © 2014. All rights reserved.