久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

使用 RNOM 從 RelaxNG 模式生成對象模型 - 如何開始

Generate object model out of RelaxNG schema with RNGOM - how to start?(使用 RNOM 從 RelaxNG 模式生成對象模型 - 如何開始?)
本文介紹了使用 RNOM 從 RelaxNG 模式生成對象模型 - 如何開始?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我想從一個 RelaxNG Schema 中生成一個對象模型.

I want to generate an object model out of an RelaxNG Schema.

因此我想使用 RNGOM 對象模型/解析器(主要是因為我找不到任何替代方案- 雖然我什至不關(guān)心解析器編寫/生成的語言).現(xiàn)在我從 SVN 查看了 RNGOM 源代碼,我不知道怎么做使用 RNOM,因為沒有任何關(guān)于使用的信息.

Therefore I want to use the RNGOM Object Model/Parser (mainly because I could not find any alternative - although I don't even care about the language the parser is written in/generates). Now that I checked out the RNGOM source from SVN, I don't have ANY idea how to use RNGOM, since there is not any piece of information out there about the usage.

一個有用的提示如何開始使用 RNGOM - 一個鏈接、示例或任何描述,使我不必閱讀理解 RNGOM 的整個源代碼 - 將作為答案授予.更好的是如何使用解析器從 RNG 文件生成對象模型的簡單示例.

A useful hint how to start with RNGOM - a link, example, or any description which saves me from having to read understand the whole source code of RNGOM - will be awarded as an answer. Even better would be a simple example how to use the parser to generate an Object model out of an RNG file.

更多信息:

我想從下面的 RelaxNG Schema 中生成 Java 類:
http://libvirt.org/git/?p=libvirt.git;a=tree;f=docs/schemas;hb=HEAD

I want to generate Java classes out of the following RelaxNG Schema:
http://libvirt.org/git/?p=libvirt.git;a=tree;f=docs/schemas;hb=HEAD

我發(fā)現(xiàn) Glassfish 的人正在使用 rgom 來生成我需要的相同對象模型,但我還不知道他們是如何使用 rgom 的.

I found out that the Glassfish guys are using rngom to generate the same object model I need, but I could not yet find out how they are using rngom.

推薦答案

一種方法可以是:

  1. 使用 jing 從 Relax NG 轉(zhuǎn)換為 XML Schema(看這里)
  2. 使用更常用的工具來生成類(例如 JaxB).

這篇關(guān)于使用 RNOM 從 RelaxNG 模式生成對象模型 - 如何開始?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

How to wrap text around components in a JTextPane?(如何在 JTextPane 中的組件周圍環(huán)繞文本?)
MyBatis, how to get the auto generated key of an insert? [MySql](MyBatis,如何獲取插入的自動生成密鑰?[MySql])
Inserting to Oracle Nested Table in Java(在 Java 中插入 Oracle 嵌套表)
Java: How to insert CLOB into oracle database(Java:如何將 CLOB 插入 oracle 數(shù)據(jù)庫)
Why does Spring-data-jdbc not save my Car object?(為什么 Spring-data-jdbc 不保存我的 Car 對象?)
Use threading to process file chunk by chunk(使用線程逐塊處理文件)
主站蜘蛛池模板: 国产乱码精品一区二区三区五月婷 | 一级大片 | 超碰超碰 | 久热国产精品视频 | 国产精品一区二区在线播放 | 国产欧美精品一区二区三区 | 久久精品二区亚洲w码 | 日韩精品一区二区三区视频播放 | 国产精品免费一区二区三区四区 | 中文字幕一区二区三区四区五区 | 国产成人免费网站 | 国产日韩久久 | 精品久久久久久久久久久久久久 | 国产成人久久精品一区二区三区 | 羞羞的视频在线观看 | av激情在线| 国产成人精品久久 | 99热在线播放 | 91麻豆精品国产91久久久久久久久 | 人人玩人人干 | 四虎影院在线观看免费视频 | 四虎影院新网址 | 四虎在线播放 | 精产国产伦理一二三区 | 日韩欧美高清 | 色花av| 久久黄网 | 日朝毛片| av国产精品毛片一区二区小说 | 成人不卡视频 | 亚洲精品视频一区二区三区 | 亚洲高清电影 | 精品99在线 | 美国av毛片 | 综合九九 | a在线视频 | 亚洲欧美精品国产一级在线 | 久久国产综合 | 亚洲精品欧美一区二区三区 | 一级做a爰片久久毛片免费看 | 91久久精品一区二区二区 |