`
bd7lx
  • 浏览: 203085 次
社区版块
存档分类
最新评论

Jymal

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



用法简单
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);

图示关系


YAML不是Ruby的专利

分享到:
评论
1 楼 robbin 2006-10-23  
有点意思啊,Java版本的YAML!非常棒!!!

相关推荐

Global site tag (gtag.js) - Google Analytics