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 null
public 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 null
public FlowGraph getFlowGraph()
public List<FlowPartDescription.Parameter> getParameters()
public FlowElementKind getKind()
FlowElementDescription
getKind
in interface FlowElementDescription
public FlowElementDescription getOrigin()
FlowElementDescription
getOrigin
in interface FlowElementDescription
public String getName()
FlowElementDescription
getName
in interface FlowElementDescription
public void setName(String newName)
FlowElementDescription
setName
in interface FlowElementDescription
newName
- the namepublic List<FlowElementPortDescription> getInputPorts()
FlowElementDescription
getInputPorts
in interface FlowElementDescription
public List<FlowElementPortDescription> getOutputPorts()
FlowElementDescription
getOutputPorts
in interface FlowElementDescription
public 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 null
public 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 null
public List<FlowResourceDescription> getResources()
FlowElementDescription
getResources
in interface FlowElementDescription
public Set<? extends Class<? extends FlowElementAttribute>> getAttributeTypes()
FlowElementAttributeProvider
getAttributeTypes
in interface FlowElementAttributeProvider
public <T extends FlowElementAttribute> T getAttribute(Class<T> attributeClass)
FlowElementAttributeProvider
getAttribute
in interface FlowElementAttributeProvider
T
- target classattributeClass
- target classnull
if not definedCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.