public class OperatorDescription extends Object implements FlowElementDescription
Modifier and Type | Class and Description |
---|---|
static class |
OperatorDescription.Builder
A builder for building
OperatorDescription . |
static class |
OperatorDescription.Declaration
Represents a declaration of operator.
|
static class |
OperatorDescription.Parameter
Represents a user parameter.
|
Constructor and Description |
---|
OperatorDescription(FlowElementDescription origin,
OperatorDescription.Declaration declaration,
List<FlowElementPortDescription> inputPorts,
List<FlowElementPortDescription> outputPorts,
List<FlowResourceDescription> resources,
List<OperatorDescription.Parameter> parameters,
List<FlowElementAttribute> attributes)
Creates a new instance.
|
OperatorDescription(OperatorDescription.Declaration declaration,
List<FlowElementPortDescription> inputPorts,
List<FlowElementPortDescription> outputPorts,
List<FlowResourceDescription> resources,
List<OperatorDescription.Parameter> parameters,
List<FlowElementAttribute> attributes)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
<T extends FlowElementAttribute> |
getAttribute(Class<T> attributeClass)
Returns the attribute of this.
|
Set<FlowElementAttribute> |
getAttributes()
Returns the attributes of the operator.
|
Set<? extends Class<? extends FlowElementAttribute>> |
getAttributeTypes()
Returns the all available attribute types of this.
|
OperatorDescription.Declaration |
getDeclaration()
Returns information of the operator declaration.
|
List<FlowElementPortDescription> |
getInputPorts()
Returns the input ports of this element.
|
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<OperatorDescription.Parameter> |
getParameters()
Returns information of the user parameters.
|
List<FlowResourceDescription> |
getResources()
Returns the external resources of this element.
|
void |
setName(String name)
Sets name of this element.
|
String |
toString() |
public OperatorDescription(OperatorDescription.Declaration declaration, List<FlowElementPortDescription> inputPorts, List<FlowElementPortDescription> outputPorts, List<FlowResourceDescription> resources, List<OperatorDescription.Parameter> parameters, List<FlowElementAttribute> attributes)
declaration
- information of the operator declarationinputPorts
- information of the input portsoutputPorts
- information of the output portsresources
- information of the external resourcesparameters
- information of the user parametersattributes
- the attributesIllegalArgumentException
- if some parameters are null
public OperatorDescription(FlowElementDescription origin, OperatorDescription.Declaration declaration, List<FlowElementPortDescription> inputPorts, List<FlowElementPortDescription> outputPorts, List<FlowResourceDescription> resources, List<OperatorDescription.Parameter> parameters, List<FlowElementAttribute> attributes)
origin
- the original description (nullable)declaration
- information of the operator declarationinputPorts
- information of the input portsoutputPorts
- information of the output portsresources
- information of the external resourcesparameters
- information of the user parametersattributes
- the attributesIllegalArgumentException
- if some parameters are null
public FlowElementKind getKind()
FlowElementDescription
getKind
in interface FlowElementDescription
public FlowElementDescription getOrigin()
FlowElementDescription
getOrigin
in interface FlowElementDescription
public OperatorDescription.Declaration getDeclaration()
public String getName()
FlowElementDescription
getName
in interface FlowElementDescription
public void setName(String name)
FlowElementDescription
setName
in interface FlowElementDescription
name
- the namepublic List<FlowElementPortDescription> getInputPorts()
FlowElementDescription
getInputPorts
in interface FlowElementDescription
public List<FlowElementPortDescription> getOutputPorts()
FlowElementDescription
getOutputPorts
in interface FlowElementDescription
public List<FlowResourceDescription> getResources()
FlowElementDescription
getResources
in interface FlowElementDescription
public List<OperatorDescription.Parameter> getParameters()
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 definedpublic Set<FlowElementAttribute> getAttributes()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.