org.specrunner.listeners.core
Class AbstractNodeListener

java.lang.Object
  extended by org.specrunner.listeners.core.AbstractNodeListener
All Implemented Interfaces:
INodeListener, ISpecRunnerListener
Direct Known Subclasses:
PauseOnFailureNodeListener

public abstract class AbstractNodeListener
extends Object
implements INodeListener

Helper for node listeners.

Author:
Thiago Santos

Constructor Summary
AbstractNodeListener()
           
 
Method Summary
 void onAfter(nu.xom.Node node, IContext context, IResultSet result)
          Perform some action after plugin execution for a given node.
 ENext onBefore(nu.xom.Node node, IContext context, IResultSet result)
          Perform some action before building plugin for a given node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.specrunner.listeners.ISpecRunnerListener
getName, reset
 

Constructor Detail

AbstractNodeListener

public AbstractNodeListener()
Method Detail

onBefore

public ENext onBefore(nu.xom.Node node,
                      IContext context,
                      IResultSet result)
Description copied from interface: INodeListener
Perform some action before building plugin for a given node.

Specified by:
onBefore in interface INodeListener
Parameters:
node - The node.
context - The context.
result - The result.
Returns:
The next step on execution. If return is ENext.DEEP, the execution should go deeper.

onAfter

public void onAfter(nu.xom.Node node,
                    IContext context,
                    IResultSet result)
Description copied from interface: INodeListener
Perform some action after plugin execution for a given node.

Specified by:
onAfter in interface INodeListener
Parameters:
node - The node.
context - The context.
result - The result.


Copyright © 2014. All rights reserved.