org.specrunner.core.pipes
Class PipeDump

java.lang.Object
  extended by org.specrunner.core.pipes.PipeDump
All Implemented Interfaces:
IPipe
Direct Known Subclasses:
PipeShortDump

public class PipeDump
extends Object
implements IPipe

Make dumpers dump. :)

Author:
Thiago Santos

Constructor Summary
PipeDump()
           
 
Method Summary
 boolean check(IChannel channel)
          Check if a pipe must perform something on channel.
protected  String getNome()
          Thread normalized name.
protected  void messageAfter(Map<String,Object> info, IResultSet result)
          Message after execution.
protected  void messageBefore(String input)
          Print message before execution.
 IChannel process(IChannel channel)
          Perform some transformation over the channel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PipeDump

public PipeDump()
Method Detail

check

public boolean check(IChannel channel)
              throws AbortException
Description copied from interface: IPipe
Check if a pipe must perform something on channel. If the channel is corrupted the pipe must throw AbortException.

Specified by:
check in interface IPipe
Parameters:
channel - The information channel.
Returns:
true, if pipe must perform something on channel, false, otherwise.
Throws:
AbortException - If the channel is corrupted.

process

public IChannel process(IChannel channel)
                 throws PipelineException
Description copied from interface: IPipe
Perform some transformation over the channel.

Specified by:
process in interface IPipe
Parameters:
channel - The channel.
Returns:
The pipe itself.
Throws:
PipelineException - On processing errors.

messageBefore

protected void messageBefore(String input)
Print message before execution.

Parameters:
input - The input.

getNome

protected String getNome()
Thread normalized name.

Returns:
The normalized thread named.

messageAfter

protected void messageAfter(Map<String,Object> info,
                            IResultSet result)
Message after execution.

Parameters:
info - The model information.
result - The result set.


Copyright © 2014. All rights reserved.