@Preview(value="3.0") public class Chain extends Object
| Constructor and Description |
|---|
Chain(String id) |
Chain(String id,
String title) |
Chain(String id,
String title,
String driver) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNode(NodeDecl nodeDecl)
添加节点
|
void |
check()
校验
|
String |
driver()
驱动器
|
Node |
getNode(String id)
获取节点
|
String |
id()
标识
|
List<Link> |
links()
获取所有连接
|
Map<String,Object> |
meta()
元信息
|
Map<String,Node> |
nodes()
获取所有元素
|
static Chain |
parseByDom(org.noear.snack.ONode dom)
解析配置文档模型
|
static Chain |
parseByProperties(Properties properties)
解析配置属性
|
static Chain |
parseByText(String text)
解析配置文本
|
static Chain |
parseByUri(String uri)
解析配置文件
|
Node |
start()
获取起始节点
|
String |
title()
显示标题
|
public Chain(String id)
public String id()
public String title()
public String driver()
public Node start()
public void addNode(NodeDecl nodeDecl)
public void check()
public static Chain parseByUri(String uri) throws IOException
IOExceptionpublic static Chain parseByText(String text)
text - 配置文本(支持 yml, properties, json 格式)public static Chain parseByProperties(Properties properties)
properties - 配置属性public static Chain parseByDom(org.noear.snack.ONode dom)
dom - 配置文档模型Copyright © 2025. All rights reserved.