|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.core.pipes.PipeSource
public class PipeSource
Creates the source and add to the channel.
| Field Summary | |
|---|---|
static String |
SOURCE
Source. |
| Constructor Summary | |
|---|---|
PipeSource()
|
|
| Method Summary | |
|---|---|
protected void |
addResources(ISource source)
Add resources to a source. |
static void |
bind(IChannel channel,
ISource source)
Bind a source to the channel. |
boolean |
check(IChannel channel)
Check if a pipe must perform something on channel. |
protected ISource |
createSource(String input)
Creates a source from input. |
static ISource |
lookup(IChannel channel)
Recover the source from channel. |
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 |
| Field Detail |
|---|
public static final String SOURCE
| Constructor Detail |
|---|
public PipeSource()
| Method Detail |
|---|
public boolean check(IChannel channel)
throws AbortException
IPipe
check in interface IPipechannel - The information channel.
AbortException - If the channel is corrupted.
public IChannel process(IChannel channel)
throws PipelineException
IPipe
process in interface IPipechannel - The channel.
PipelineException - On processing errors.
protected ISource createSource(String input)
throws SourceException
input - The input name.
SourceException - On source creation errors.
protected void addResources(ISource source)
throws ResourceException
source - The source.
ResourceException - On resource errors.
public static void bind(IChannel channel,
ISource source)
channel - The channel.source - The source.
public static ISource lookup(IChannel channel)
throws NotFoundException,
InvalidTypeException
channel - The channel.
NotFoundException - On lookup errors.
InvalidTypeException - On type errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||