Package cloud.opencode.base.yml
package cloud.opencode.base.yml
OpenCode Base YML - YAML Processing Library
OpenCode Base YML - YAML 处理库
This package provides comprehensive YAML parsing, binding, and manipulation utilities.
此包提供全面的 YAML 解析、绑定和操作工具。
Key Features | 主要特性
- YAML parsing and writing with SPI support | 支持 SPI 的 YAML 解析和写入
- Object binding with annotations | 带注解的对象绑定
- Placeholder resolution (${...}) | 占位符解析(${...})
- Document merging | 文档合并
- Path-based access | 基于路径的访问
- Security features | 安全特性
Quick Start | 快速开始
// Parse YAML
YmlDocument doc = OpenYml.parse("""
server:
port: 8080
host: localhost
""");
// Access values
int port = doc.getInt("server.port");
String host = doc.getString("server.host");
// Bind to object
ServerConfig config = OpenYml.bind(doc, "server", ServerConfig.class);
// Write YAML
String yaml = OpenYml.dump(doc);
- Since:
- JDK 25, opencode-base-yml V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
- See Also:
-
ClassDescriptionDefault YmlNode Implementation - Wraps raw YAML data as a node tree 默认 YmlNode 实现 - 将原始 YAML 数据包装为节点树OpenYml - Main entry point for YAML operations OpenYml - YAML 操作的主入口点YAML Configuration - Configuration options for YAML processing YAML 配置 - YAML 处理的配置选项Configuration Builder 配置构建器Flow Style - YAML output flow style 流风格 - YAML 输出流风格Scalar Style - YAML scalar output style 标量风格 - YAML 标量输出风格YAML Document - Represents a parsed YAML document YAML 文档 - 表示解析后的 YAML 文档YAML Node Interface - Represents a node in YAML document tree YAML 节点接口 - 表示 YAML 文档树中的节点Node Type - Types of YAML nodes 节点类型 - YAML 节点的类型