public static class FlowPartDescription.Builder extends Object
FlowPartDescription.| Constructor and Description |
|---|
Builder(Class<? extends FlowDescription> declaring)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
<T> FlowIn<T> |
addInput(String name,
Source<T> typeReference)
Add a new input port into the target flow-part.
|
<T> FlowIn<T> |
addInput(String name,
Type type)
Add a new input port into the target flow-part.
|
<T> FlowOut<T> |
addOutput(String name,
Source<T> typeReference)
Add a new output port into the target flow-part.
|
<T> FlowOut<T> |
addOutput(String name,
Type type)
Add a new output port into the target flow-part.
|
void |
addParameter(String parameterName,
Type parameterType,
Object argument)
Adds a parameter and its argument value for this flow-part.
|
FlowPartDescription |
toDescription()
Creates a new description object from the previously information.
|
FlowElementResolver |
toResolver(FlowDescription desc)
Creates a new
FlowElementResolver object from the previously information. |
public Builder(Class<? extends FlowDescription> declaring)
declaring - the class declaring the target flow-partIllegalArgumentException - if the parameter is nullpublic <T> FlowIn<T> addInput(String name, Type type)
T - the data typename - the port nametype - the data typeFlowIn object that represents the defined portIllegalArgumentException - if some parameters are nullpublic <T> FlowOut<T> addOutput(String name, Type type)
T - the data typename - the port nametype - the data typeFlowOut object that represents the defined portIllegalArgumentException - if some parameters are nullpublic <T> FlowIn<T> addInput(String name, Source<T> typeReference)
T - the data typename - the port nametypeReference - a source that has the data type as same to the creating portFlowIn object that represents the defined portIllegalArgumentException - if some parameters are nullpublic <T> FlowOut<T> addOutput(String name, Source<T> typeReference)
T - the data typename - the port nametypeReference - a source that has the data type as same to the creating portFlowOut object that represents the defined portIllegalArgumentException - if some parameters are nullpublic void addParameter(String parameterName, Type parameterType, Object argument)
parameterName - the parameter nameparameterType - the parameter valueargument - the actual parameter argument, or null if the argument is just nullIllegalArgumentException - if some parameters were nullpublic FlowPartDescription toDescription()
public FlowElementResolver toResolver(FlowDescription desc)
FlowElementResolver object from the previously information.desc - the original flow description objectCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.