org.specrunner.core.pipes
Class PipeTime

java.lang.Object
  extended by org.specrunner.core.pipes.AbstractPipeModel
      extended by org.specrunner.core.pipes.PipeTime
All Implemented Interfaces:
IPipe

public class PipeTime
extends AbstractPipeModel

Add time information to the channel.

Author:
Thiago Santos

Field Summary
static String TIME
          Time model information.
 
Constructor Summary
PipeTime()
           
 
Method Summary
static Long lookup(IChannel channel)
          Recover the time information from channel.
 IChannel process(IChannel channel, Map<String,Object> model)
          Process the channel with the model already recovered.
 
Methods inherited from class org.specrunner.core.pipes.AbstractPipeModel
check, process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TIME

public static final String TIME
Time model information.

See Also:
Constant Field Values
Constructor Detail

PipeTime

public PipeTime()
Method Detail

process

public IChannel process(IChannel channel,
                        Map<String,Object> model)
                 throws PipelineException
Description copied from class: AbstractPipeModel
Process the channel with the model already recovered.

Specified by:
process in class AbstractPipeModel
Parameters:
channel - The pipeline channel.
model - The model.
Returns:
The channel itself.
Throws:
PipelineException - On pipeline errors.

lookup

public static Long lookup(IChannel channel)
                   throws NotFoundException,
                          InvalidTypeException
Recover the time information from channel.

Parameters:
channel - The channel.
Returns:
The time.
Throws:
NotFoundException - On lookup errors.
InvalidTypeException - On type errors.


Copyright © 2014. All rights reserved.