|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.core.pipes.PipeAnnotator
public class PipeAnnotator
Pipe to bind an annotator to the channel.
| Field Summary | |
|---|---|
static String |
ANNOTATOR
Object name into the channel. |
| Constructor Summary | |
|---|---|
PipeAnnotator()
|
|
| Method Summary | |
|---|---|
static IChannel |
bind(IChannel channel,
IAnnotator obj)
Bind the object to the channel. |
boolean |
check(IChannel channel)
Check if a pipe must perform something on channel. |
protected IAnnotator |
createAnnotator()
Creates an annotator instance. |
static IAnnotator |
lookup(IChannel channel)
Look for the object into the 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 ANNOTATOR
| Constructor Detail |
|---|
public PipeAnnotator()
| 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 IAnnotator createAnnotator()
throws AnnotatorException
AnnotatorException - On creation error.
public static IChannel bind(IChannel channel,
IAnnotator obj)
channel - The channel.obj - The object.
public static IAnnotator lookup(IChannel channel)
throws NotFoundException,
InvalidTypeException
channel - The channel.
NotFoundException - When object with the given name.
InvalidTypeException - When expected type do not match.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||