Jymal

阅读更多
http://jyaml.sourceforge.net/

Jymal_第1张图片

用法简单
Direct mapping to programming objects with JYaml

With JYaml, entities in a Yaml file are directly mapped into programming objects. This means interaction with the library will be very simple, in most cases requiring only one method call. For example, the following Yaml file

date: 11/29/2005
receipts:
    -   store: ken stanton music
        category: entertainment
        description: saxophone repair
        total: 382.00
    -   store: walmart
        category: groceries
        total: 14.26

transforms into the following data structure

with just the following line of code

Entry entry = Yaml.loadType(new File("ReceiptEntry.yml"),
                                          Entry.class);

图示关系
Jymal_第2张图片

YAML不是Ruby的专利

你可能感兴趣的:(Ruby,.net)