public final class FlowElement extends Object implements FlowElementAttributeProvider
| Constructor and Description | 
|---|
| FlowElement(FlowElementDescription description)Creates a new instance. | 
| FlowElement(FlowElementDescription description,
           Collection<? extends FlowElementAttribute> attributeOverride)Creates a new instance. | 
| Modifier and Type | Method and Description | 
|---|---|
| FlowElement | copy()Creates a new copy without any connections. | 
| <T extends FlowElementAttribute> | getAttribute(Class<T> attributeClass)Returns the attribute of this. | 
| Collection<FlowElementAttribute> | getAttributeOverride()Returns the overwritten attributes. | 
| Set<? extends Class<? extends FlowElementAttribute>> | getAttributeTypes()Returns the all available attribute types of this. | 
| FlowElementDescription | getDescription()Returns the description of this element. | 
| Object | getIdentity()Returns the original identity. | 
| List<FlowElementInput> | getInputPorts()Returns input ports of this element. | 
| List<FlowElementOutput> | getOutputPorts()Returns input ports of this element. | 
| boolean | hasAttribute(FlowElementAttribute attribute)Returns whether this element has the specified attribute or not. | 
| void | override(FlowElementAttribute attribute)Overwrites the attribute into this element. | 
| String | toString() | 
public FlowElement(FlowElementDescription description)
description - definition descriptionIllegalArgumentException - if some parameters were nullpublic FlowElement(FlowElementDescription description, Collection<? extends FlowElementAttribute> attributeOverride)
description - definition descriptionattributeOverride - extra attributes for this elementIllegalArgumentException - if some parameters were nullpublic FlowElement copy()
identity.public Object getIdentity()
public FlowElementDescription getDescription()
public List<FlowElementInput> getInputPorts()
public List<FlowElementOutput> getOutputPorts()
public boolean hasAttribute(FlowElementAttribute attribute)
attribute - the target attributetrue if this element has the specified attribute, otherwise falseIllegalArgumentException - if the parameter is nullpublic 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 definedpublic void override(FlowElementAttribute attribute)
attribute - the attribute to be overwrittenpublic Collection<FlowElementAttribute> getAttributeOverride()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.