org.specrunner.core.pipes
Class PipeTime
java.lang.Object
org.specrunner.core.pipes.AbstractPipeModel
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TIME
public static final String TIME
- Time model information.
- See Also:
- Constant Field Values
PipeTime
public PipeTime()
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.