public class FlowElementResolver extends Object
FlowElement.| Modifier and Type | Class and Description |
|---|---|
static class |
FlowElementResolver.OutputDriver<T>
An adapter class that enables
FlowElementOutput performs as Source. |
| Constructor and Description |
|---|
FlowElementResolver(FlowElement element)
Creates a new instance.
|
FlowElementResolver(FlowElementDescription description)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
FlowElement |
getElement()
Returns the target flow element of this resolver.
|
FlowElementInput |
getInput(String name)
Returns the input port of the target flow element.
|
FlowElementOutput |
getOutput(String name)
Returns the output port of the target flow element.
|
void |
resolveInput(String name,
Source<?> source)
Connects between an upstream source and the input port of the flow element.
|
<T> Source<T> |
resolveOutput(String name)
Returns the output port of the target flow element as upstream source.
|
void |
setName(String name)
Sets the flow element name.
|
public FlowElementResolver(FlowElement element)
element - target element.IllegalArgumentException - if some parameters were nullpublic FlowElementResolver(FlowElementDescription description)
description - a description of the target FlowElementIllegalArgumentException - if some parameters were nullpublic FlowElement getElement()
public FlowElementInput getInput(String name)
name - the target port nameNoSuchElementException - if the target flow element does not have such a portIllegalArgumentException - if some parameters were nullpublic FlowElementOutput getOutput(String name)
name - the target port nameNoSuchElementException - if the target flow element does not have such a portIllegalArgumentException - if some parameters were nullpublic void resolveInput(String name, Source<?> source)
name - the target port namesource - the upstream sourceNoSuchElementException - if the target flow element does not have such a portIllegalArgumentException - if some parameters were nullpublic <T> Source<T> resolveOutput(String name)
T - the data type of the portname - the target port nameNoSuchElementException - if the target flow element does not have such a portIllegalArgumentException - if some parameters were nullpublic void setName(String name)
name - the nameUnsupportedOperationException - if the target flow element does not support changing its nameIllegalArgumentException - if the parameter is nullCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.