| Modifier and Type | Method and Description |
|---|---|
TSelf |
configure(Consumer<? super TSelf> configure)
Configures this object.
|
TSelf |
connect(TOpposite opposite)
Connects to the given opposite port.
|
abstract TSelf |
connect(TOpposite opposite,
Consumer<? super Wire> configure)
Connects to the given opposite port.
|
List<? extends Attribute> |
getAttributes()
Returns the attributes of this element.
|
abstract List<TOpposite> |
getOpposites()
Returns the connected opposites.
|
Node |
getParent()
Returns the parent element of this.
|
abstract List<Wire> |
getWires()
Returns the connected wires.
|
String |
toString() |
TSelf |
withAttribute(Attribute attribute)
Adds an attribute.
|
TSelf |
withAttributes(Attribute... attributes)
Adds attributes.
|
TSelf |
withAttributes(List<? extends Attribute> attributes)
Adds attributes.
|
public Node getParent()
Elementnull if this is root elementpublic TSelf connect(TOpposite opposite)
opposite - the target portpublic abstract TSelf connect(TOpposite opposite, Consumer<? super Wire> configure)
opposite - the target portconfigure - the wire configuratorpublic abstract List<Wire> getWires()
public abstract List<TOpposite> getOpposites()
public TSelf configure(Consumer<? super TSelf> configure)
configure - the configuratorpublic List<? extends Attribute> getAttributes()
ElementgetAttributes in interface Elementpublic TSelf withAttribute(Attribute attribute)
ElementwithAttribute in interface Elementattribute - the attributepublic TSelf withAttributes(List<? extends Attribute> attributes)
ElementwithAttributes in interface Elementattributes - the attributespublic TSelf withAttributes(Attribute... attributes)
ElementwithAttributes in interface Elementattributes - the attributesCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.