public class InputDescription extends Object implements FlowElementDescription
| Modifier and Type | Field and Description |
|---|---|
static String |
OUTPUT_PORT_NAME
The port name.
|
| Constructor and Description |
|---|
InputDescription(String name,
ImporterDescription importer)
Creates a new instance.
|
InputDescription(String name,
Type type)
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.
|
Type |
getDataType()
Returns the data type of this input.
|
ImporterDescription |
getImporterDescription()
Returns the importer description of this input.
|
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<FlowResourceDescription> |
getResources()
Returns the external resources of this element.
|
void |
setName(String newName)
Sets name of this element.
|
String |
toString() |
public static final String OUTPUT_PORT_NAME
public InputDescription(String name, Type type)
name - the input nametype - the data typeIllegalArgumentException - if some parameters are nullpublic InputDescription(String name, ImporterDescription importer)
name - the input nameimporter - the importer description of this inputIllegalArgumentException - if some parameters are nullpublic String getName()
FlowElementDescriptiongetName in interface FlowElementDescriptionpublic void setName(String newName)
FlowElementDescriptionsetName in interface FlowElementDescriptionnewName - the namepublic ImporterDescription getImporterDescription()
null if this input is not externalpublic FlowElementKind getKind()
FlowElementDescriptiongetKind in interface FlowElementDescriptionpublic FlowElementDescription getOrigin()
FlowElementDescriptiongetOrigin in interface FlowElementDescriptionpublic Type getDataType()
public List<FlowElementPortDescription> getInputPorts()
FlowElementDescriptiongetInputPorts in interface FlowElementDescriptionpublic List<FlowElementPortDescription> getOutputPorts()
FlowElementDescriptiongetOutputPorts in interface FlowElementDescriptionpublic 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.