本文介紹了JAXB 文檔注釋的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我有以下帶有 JAXB @XMLRootElement 注釋的 java 類
I have the following java class with the JAXB @XMLRootElement annotation
當我生成 xsd 架構時會生成這個 xml 片段
which produces this xml fragment when i generate the xsd schema
是否可以使用 JAXB 注釋,以便將 address1 字段的文檔詳細信息作為 xs:annotation/xs:documentention 元素包含在我的最終模式中?
Is it possible to use a JAXB annotation so that the documentation details on the address1 field will be included as a xs:annotation/xs:documentention element in my final schema?
推薦答案
簡單的回答:不,使用內置 JAXB 是不可能的.
Simple answer: no it's not possible with builtin JAXB.
這篇關于JAXB 文檔注釋的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!