public class FlowPartDescription extends Object implements FlowElementDescription
| Modifier and Type | Class and Description |
|---|---|
static class |
FlowPartDescription.Builder
A builder for building
FlowPartDescription. |
static class |
FlowPartDescription.Parameter
Represents a parameter and its argument for flow-part.
|
| Constructor and Description |
|---|
FlowPartDescription(FlowGraph flowGraph)
Creates a new instance.
|
FlowPartDescription(FlowGraph flowGraph,
List<? extends FlowPartDescription.Parameter> parameters)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends FlowElementAttribute> |
getAttribute(Class<T> attributeClass)
Returns the attribute of this.
|
Set<? extends Class<? extends FlowElementAttribute>> |
getAttributeTypes()
Returns the all available attribute types of this.
|
FlowGraph |
getFlowGraph()
Returns the flow-graph which represents this flow-part structure.
|
List<FlowElementPortDescription> |
getInputPorts()
Returns the input ports of this element.
|
FlowIn<?> |
getInternalInputPort(FlowElementPortDescription externalInput)
Returns the flow-inside input ports that individually corresponded to each flow-outside input port.
|
FlowOut<?> |
getInternalOutputPort(FlowElementPortDescription externalOutput)
Returns the flow-inside outputs ports that individually corresponded to each flow-outside output port.
|
FlowElementKind |
getKind()
Returns the kind of this element.
|
String |
getName()
Returns the name of this element.
|
FlowElementDescription |
getOrigin()
Returns the original description.
|
List<FlowElementPortDescription> |
getOutputPorts()
Returns the output ports of this element.
|
List<FlowPartDescription.Parameter> |
getParameters()
Returns the parameters for this flow-part.
|
List<FlowResourceDescription> |
getResources()
Returns the external resources of this element.
|
void |
setName(String newName)
Sets name of this element.
|
String |
toString() |
public FlowPartDescription(FlowGraph flowGraph)
flowGraph - the flow-graph which represents this flow-part structureIllegalArgumentException - if the parameter is nullpublic FlowPartDescription(FlowGraph flowGraph, List<? extends FlowPartDescription.Parameter> parameters)
flowGraph - the flow-graph which represents this flow-part structureparameters - the parameters for this flow-partIllegalArgumentException - if some parameters were nullpublic FlowGraph getFlowGraph()
public List<FlowPartDescription.Parameter> getParameters()
public FlowElementKind getKind()
FlowElementDescriptiongetKind in interface FlowElementDescriptionpublic FlowElementDescription getOrigin()
FlowElementDescriptiongetOrigin in interface FlowElementDescriptionpublic String getName()
FlowElementDescriptiongetName in interface FlowElementDescriptionpublic void setName(String newName)
FlowElementDescriptionsetName in interface FlowElementDescriptionnewName - the namepublic List<FlowElementPortDescription> getInputPorts()
FlowElementDescriptiongetInputPorts in interface FlowElementDescriptionpublic List<FlowElementPortDescription> getOutputPorts()
FlowElementDescriptiongetOutputPorts in interface FlowElementDescriptionpublic FlowIn<?> getInternalInputPort(FlowElementPortDescription externalInput)
flow graph, on the other hand,
each flow-outside port is a member of input ports of this element.externalInput - flow-outside portIllegalArgumentException - if the parameter is nullpublic FlowOut<?> getInternalOutputPort(FlowElementPortDescription externalOutput)
flow graph, on the other hand,
each flow-outside port is a member of output ports of this element.externalOutput - flow-outside portIllegalArgumentException - if the parameter is nullpublic List<FlowResourceDescription> getResources()
FlowElementDescriptiongetResources in interface FlowElementDescriptionpublic Set<? extends Class<? extends FlowElementAttribute>> getAttributeTypes()
FlowElementAttributeProvidergetAttributeTypes in interface FlowElementAttributeProviderpublic <T extends FlowElementAttribute> T getAttribute(Class<T> attributeClass)
FlowElementAttributeProvidergetAttribute in interface FlowElementAttributeProviderT - target classattributeClass - target classnull if not definedCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.