public class NodeDecl
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected java.lang.String |
id |
protected java.util.List<NodeLinkDecl> |
links |
protected java.util.Map<java.lang.String,java.lang.Object> |
meta |
protected java.lang.String |
task |
protected java.lang.String |
title |
protected NodeType |
type |
限定符和类型 | 方法和说明 |
---|---|
NodeDecl |
linkAdd(java.lang.String nextId)
配置链接
|
NodeDecl |
linkAdd(java.lang.String nextId,
java.util.function.Consumer<NodeLinkDecl> configure)
配置链接
|
NodeDecl |
meta(java.util.Map<java.lang.String,java.lang.Object> meta)
配置元信息
|
NodeDecl |
metaPut(java.lang.String key,
java.lang.Object value)
配置元信息
|
NodeDecl |
task(java.lang.String task)
配置任务
|
NodeDecl |
title(java.lang.String title)
配置标题
|
protected final java.lang.String id
protected java.lang.String title
protected NodeType type
protected java.util.Map<java.lang.String,java.lang.Object> meta
protected java.util.List<NodeLinkDecl> links
protected java.lang.String task
public NodeDecl(java.lang.String id, NodeType type)
id
- 标识type
- 类型public NodeDecl title(java.lang.String title)
public NodeDecl meta(java.util.Map<java.lang.String,java.lang.Object> meta)
public NodeDecl metaPut(java.lang.String key, java.lang.Object value)
public NodeDecl linkAdd(java.lang.String nextId, java.util.function.Consumer<NodeLinkDecl> configure)
public NodeDecl linkAdd(java.lang.String nextId)
public NodeDecl task(java.lang.String task)