public class MutableNode extends Object implements Linkable, MutableAttributed<MutableNode>, LinkTarget, MutableLinkSource<MutableNode>
| Modifier and Type | Field and Description |
|---|---|
protected MutableAttributed<MutableNode> |
attributes |
protected Label |
label |
protected List<Link> |
links |
| Modifier | Constructor and Description |
|---|---|
protected |
MutableNode(Label label,
List<Link> links,
Attributes attributes) |
| Modifier and Type | Method and Description |
|---|---|
MutableNode |
add(Attributes attrs) |
MutableNode |
addLink(LinkTarget... targets) |
MutableNode |
addLink(LinkTarget target) |
MutableNode |
addLink(String... nodes) |
MutableNode |
addLink(String node) |
Attributes |
applyTo(MapAttributes attrs) |
MutableAttributed<MutableNode> |
attrs() |
MutableNode |
copy() |
boolean |
equals(Object o) |
int |
hashCode() |
Iterator<Map.Entry<String,Object>> |
iterator() |
Label |
label() |
Collection<Link> |
links() |
Link |
linkTo() |
MutableNode |
merge(MutableNode n) |
MutableNode |
setLabel(Label label) |
MutableNode |
setLabel(String name) |
String |
toString() |
MutableNodePoint |
withCompass(Compass compass) |
MutableNodePoint |
withRecord(String record) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addapplyTo, attr, attrs, isEmptyforEach, spliteratorprotected Label label
protected final MutableAttributed<MutableNode> attributes
protected MutableNode(Label label, List<Link> links, Attributes attributes)
public MutableNode copy()
public MutableNode setLabel(Label label)
public MutableNode setLabel(String name)
public MutableNode merge(MutableNode n)
public MutableNodePoint withRecord(String record)
public MutableNodePoint withCompass(Compass compass)
public MutableNode addLink(LinkTarget target)
addLink in interface MutableLinkSource<MutableNode>public MutableNode addLink(LinkTarget... targets)
public MutableNode addLink(String node)
public MutableNode addLink(String... nodes)
public MutableNode add(Attributes attrs)
add in interface MutableAttributed<MutableNode>public Attributes applyTo(MapAttributes attrs)
applyTo in interface Attributespublic Label label()
public Collection<Link> links()
public Link linkTo()
linkTo in interface LinkTargetpublic MutableAttributed<MutableNode> attrs()
Copyright © 2015–2017. All rights reserved.