|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.treebind.DefaultPipeImplementation
A default implementation of a qbePipe that takes care of the attrs. Pipe elements should be added in the following order: 1) The sink 2) Optionally, one or more filters. The sink will be chained to the first filter, the second one to the first and so on. 3) The source. The source will be chained to the last filter if there is one or to the sink if there is no filter.
| Constructor Summary | |
DefaultPipeImplementation()
|
|
| Method Summary | |
void |
addFilter(Filter filter)
Add and chain a filter. |
void |
addFilterAfterSource(Filter newFilter)
|
void |
addFilterBeforeSink(Filter newFilter)
Add and chain a filter after the first one. |
java.lang.Object |
getParameter(java.lang.String name)
Get a parameter from its name. |
java.lang.Object |
getParameter(java.lang.String name,
java.lang.String key)
Get a parameter from its name and key. |
java.lang.Object |
getParameterWithDefault(java.lang.String name,
java.lang.Object defaultValue)
Get a parameter with a default value. |
java.lang.Object |
getParameterWithDefault(java.lang.String name,
java.lang.String key,
java.lang.Object defaultValue)
Get a parameter from its name and key with a default value. |
Sink |
getSink()
|
Source |
getSource()
|
void |
setParameter(java.lang.String name,
java.lang.Object value)
Sets the value of a parameter identified by a name. |
void |
setParameter(java.lang.String name,
java.lang.String key,
java.lang.Object value)
Sets the value of a parameter identified by a name and a key. |
void |
setSink(Sink sink)
Set the sink of the pipe. |
void |
setSource(Source source)
Set and chain the source of the pipe. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultPipeImplementation()
| Method Detail |
public void addFilter(Filter filter)
throws OutOfSyncException
Pipe
addFilter in interface Pipefilter - the filter to add.
OutOfSyncException - exception thrown if the pipe has no filter and no sink yet.public void addFilterAfterSource(Filter newFilter)
addFilterAfterSource in interface Pipepublic void addFilterBeforeSink(Filter newFilter)
Pipe
addFilterBeforeSink in interface PipenewFilter - public java.lang.Object getParameter(java.lang.String name)
Pipe
getParameter in interface Pipename - the name of the parameter.
public java.lang.Object getParameter(java.lang.String name,
java.lang.String key)
Pipe
getParameter in interface Pipename - the name of the parameter.key - key of the parameter.
public java.lang.Object getParameterWithDefault(java.lang.String name,
java.lang.Object defaultValue)
Pipe
getParameterWithDefault in interface Pipename - the name of the parameter.defaultValue - the default value.
public java.lang.Object getParameterWithDefault(java.lang.String name,
java.lang.String key,
java.lang.Object defaultValue)
Pipe
getParameterWithDefault in interface Pipename - the name of the parameter.key - key of the parameter.defaultValue - the default value.
public Sink getSink()
public Source getSource()
public void setParameter(java.lang.String name,
java.lang.Object value)
Pipe
setParameter in interface Pipename - the name of the parameter.value - its value.
public void setParameter(java.lang.String name,
java.lang.String key,
java.lang.Object value)
Pipe
setParameter in interface Pipename - the name of the parameter.key - its key.value - its value.public void setSink(Sink sink)
Pipe
setSink in interface Pipesink -
public void setSource(Source source)
throws OutOfSyncException
Pipe
setSource in interface Pipesource - the source.
OutOfSyncException - exception thrown if the pipe has no filter and no sink yet.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||