- 浏览: 1304677 次
- 性别:
- 来自: 广州
文章分类
- 全部博客 (351)
- Java General (37)
- .net General (2)
- Linux Toy (55)
- Oracle (81)
- Mysql (11)
- Programer Career (12)
- Oh, my living ! (2)
- Shell Script (8)
- Web Service (0)
- Linux Server (22)
- Php/Python/Perl (3P) (2)
- Javascript General (5)
- Saleforce Apex Dev (2)
- Web General (5)
- Xen & VM tech. (17)
- PSP (13)
- OpenSolaris (34)
- php (1)
- RAI/flex/action script (16)
- asterisk/CTI (7)
- 交互设计 (6)
- English (3)
- Lucene (1)
最新评论
-
GuolinLee:
markmark
JVM调优总结 -Xms -Xmx -Xmn -Xss -
di1984HIT:
写的太好啊。
JVM调优总结 -Xms -Xmx -Xmn -Xss -
javajdbc:
javajdbc 写道
JVM调优总结 -Xms -Xmx -Xmn -Xss -
javajdbc:
...
JVM调优总结 -Xms -Xmx -Xmn -Xss -
alvin198761:
非常感谢,国外的被封杀了,你这里还有一份
How to Convert An Image-Based Guest To An LVM-Based Guest
JAXB Architecture
This section describes the components and interactions in the JAXB processing model.
Architectural Overview
Figure 17-1 shows the components that make up a JAXB implementation.
Figure 17-1 JAXB Architectural Overview
A JAXB implementation consists of the following architectural components:
-
Schema compiler: Binds a source schema to a set of schema-derived program elements. The binding is described by an XML-based binding language.
-
Schema generator: Maps a set of existing program elements to a derived schema. The mapping is described by program annotations.
-
Binding runtime framework: Provides unmarshalling (reading) and marshalling (writing) operations for accessing, manipulating, and validating XML content using either schema-derived or existing program elements.
The JAXB Binding Process
Figure 17-2 shows what occurs during the JAXB binding process.
Figure 17-2 Steps in the JAXB Binding Process
The general steps in the JAXB data binding process are:
-
Generate classes: An XML schema is used as input to the JAXB binding compiler to generate JAXB classes based on that schema.
-
Compile classes: All of the generated classes, source files, and application code must be compiled.
-
Unmarshal: XML documents written according to the constraints in the source schema are unmarshalled by the JAXB binding framework. Note that JAXB also supports unmarshalling XML data from sources other than files/documents, such as DOM nodes, string buffers, SAX Sources, and so forth.
-
Generate content tree: The unmarshalling process generates a content tree of data objects instantiated from the generated JAXB classes; this content tree represents the structure and content of the source XML documents.
-
Validate (optional): The unmarshalling process optionally involves validation of the source XML documents before generating the content tree. Note that if you modify the content tree in Step 6, below, you can also use the JAXB Validate operation to validate the changes before marshalling the content back to an XML document.
-
Process content: The client application can modify the XML data represented by the Java content tree by means of interfaces generated by the binding compiler.
-
Marshal: The processed content tree is marshalled out to one or more XML output documents. The content may be validated before marshalling.
More about Unmarshalling
Unmarshalling provides a client application the ability to convert XML data into JAXB-derived Java objects.
More about Marshalling
Marshalling provides a client application the ability to convert a JAXB-derived Java object tree back into XML data.
By default, the Marshaller uses UTF-8 encoding when generating XML data.
Client applications are not required to validate the Java content tree before marshalling. There is also no requirement that the Java content tree be valid with respect to its original schema to marshal it back into XML data.
More about Validation
Validation is the process of verifying that an XML document meets all the constraints expressed in the schema. JAXB 1.0 provided validation at unmarshal time and also enabled on-demand validation on a JAXB content tree. JAXB 2.0 only allows validation at unmarshal and marshal time. A web service processing model is to be lax in reading in data and strict on writing it out. To meet that model, validation was added to marshal time so one could confirm that they did not invalidate the XML document when modifying the document in JAXB form.
发表评论
-
使用Spring 的封装的MailSender
2010-11-29 22:24 6666使用Spring 的封装的Ma ... -
有时候,SVN 上代码太多,而我们只想下载自己负责的那个部分进行修改,这时可以这样
2010-09-04 09:06 1239svn checkout <url_of_big_dir ... -
tomcat session replication on linux server.
2010-07-26 10:49 1166Specially, to turn on multicast ... -
Session lost when app. is redeployed (Solved)
2010-07-07 16:02 1227There is a workaround to this p ... -
jvm 5.0 GC 回收机制
2009-10-16 11:55 1729http://java.sun.com/docs/hotspo ... -
How to Create a Custom Annotations?
2009-10-08 11:32 1194There are a lot of documentatio ... -
simple json lib for java
2009-08-04 21:57 3178有时候为了需要将一个对象或数组转成json string 给前 ... -
在servlet 上输出图片
2008-07-30 21:38 4252public void doGet(HttpServletRe ... -
用java 对 oracle 中的 image 存取
2008-07-30 21:35 1809package data; import java.io. ... -
有关 java 的 tnameserv的link
2008-07-15 22:39 2252http://java.sun.com/j2se/1.4.2/ ... -
SOAP and JDOM
2008-06-18 21:54 2116看完上一篇 blog: Web 服务搜 ... -
Java Reflection API 运用示例
2008-05-05 15:51 2336本文节选 ... -
将系统移植到Spring
2008-04-29 11:06 1449Spring已经是一个在Apache 2.0许可下发布的基础构 ... -
动态代理一例
2008-04-28 15:33 1185在之前的一篇关于Dec ... -
使用JAVA中的动态代理实现数据库连接池
2008-04-28 13:48 1443作者通过使用JAVA中的动 ... -
Have you known enough about DBCP?
2008-04-23 12:08 2226Have you known enough about DBC ... -
AX-RPC Evolves into Simpler, More Powerful JAX-WS
2008-03-23 15:40 3524s of version 2.0, JAX-RPC has b ... -
更改 Netbeans 界面的字体大小
2008-03-22 07:29 4640学习或者使用 Netbeans 的时候, 有时候觉得界面字体很 ... -
JSF+Spring+Hibernate的实例讲解
2008-03-20 16:41 2417我一直认为jsf必定会成为MS的 Net ... -
Struts+Spring+Hibernate练习(完整)
2008-03-20 16:17 2035工具: Eclipse3.2.1、MyEclipse5 ...
相关推荐
jdk升级之后出现异常:java.lang.NoClassDefFoundError: javax/xml/ws/Service 1、解决方案jdk降级至1.8之前 ... <artifactId>jaxb-api</artifactId> <version>2.3.1</version> </dependency> .....
<groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId> <version>2.3.0.1</version>
包括核心接口和XPath支持<br>*StAX应用程序编程接口,包括StAX的工厂方法(factory)、文档生成和XMLPull<br>*使用JAXB进行数据绑定,使用新的JAXB 2.0 annotation<br>*使用RSS进行网络同步和podcasting<br>*表示层...
OpenApi 3插件 目录 问题 4.3。... < groupId>hu.icellmobilsoft.jaxb</ groupId> < artifactId>openapi-jaxb</ artifactId> < version>1.1.0</ version> </ dependency> 2. openapi-jaxb插件 swa
<dependency> <groupId>com.aliyun</groupId> <artifactId>dysmsapi20170525</artifactId> <version>2.0.4</version> </dependency>
xjc-javadoc-plugin ... <groupId>org.jvnet.jaxb2.maven2</groupId> <artifactId>maven-jaxb22-plugin</artifactId> <version>0.12.3</version> <executions> <execution> <id>xjc</id> <goals>
jaxb<br>jaxb
用于实例化的 XJC 插件 该插件使 XJC 能够实例化从 XML-Schemas 生成的类中的字段。... <groupId>org.jvnet.jaxb2.maven2</groupId> <artifactId>maven-jaxb2-plugin</artifactId> <version>0.8.1</version>
< iframework>0.4.0</ iframework> </ properties> 依赖项: <!-- GWTP MVP (client-side) extension --> < dependency> < groupId>pro.redsoft.iframework</ groupId> < artifactId>iframework-gwtpx...
解决List<Object> 没法转 具体对象问题 SOAP +XML JAXB Unmarshalling @XmlAnyElement
火星框架jaxb 该软件包提供了有用的辅助类,这些... <artifactId>martian-framework-jaxb</artifactId> <version>21.04.00.00</version> </dependency> 执照 根据Apache License 2.0分发。 有关更多信息,请参见。
< version>x.y.z</ version> </ dependency> 新闻和值得注意 v4.1.2-进行中更新为ph-commons 10 v4.1.1-2020-09-17 更新为雅加达JAXB 2.3.3 增加了禁用SBD(H)Marshaller XSD验证的可能性 将Java 8日期和时间
JAXB2 Maven插件欢迎使用org.jvnet.jaxb2.maven2:maven-jaxb2-plugin ,这是用于XML Schema编译的最先进且功能齐全的Maven插件。 这个Maven插件包装并... 将插件添加到您的pom.xml :< project>...< build>< plugin
api 2.3.1 <dependency> <groupId>javax.activation</groupId> <artifactId>activation</artifactId> <version>1.1</version> </dependency> <dependency> <groupId>org.glassfish.jaxb</groupId> <artifactId>jaxb-...
jaxb-2_1_9.zip jaxb最新版本 转:http://blog.sina.com.cn/s/blog_5ce5700e0100bowu.html 使用MyEclipse5.5+jboss-5.0.0.CR1+JDK1.6,在启动时报了一个错误: java.lang.LinkageError: JAXB 2.0 API is being ...
<artifactId>jaxb2-maven-plugin</artifactId> <version>1.6</version> WS配置和安全性 com.memorynotfound.server.SoapServerConfig 使用@EnableWs注释加载beers.xsd并定义该Web服务所在的位置: 安全 ...
WiseML 的 JAXB 绑定 建造 无需安装。 要构建它,您需要 Java 6 或更高版本以及 2.0 或更高版本。 在克隆此存储库之前,请确保使用“git config --global core.autocrlf input”在您的机器上启用 CRLF/LF 的自动...
JAXB的使用JAXB的使用JAXB的使用JAXB的使用
2.不是把下载的这个jar文件放在sun网站给出的<java-home>/lib/endorsed 下,而是要自己试验确定应该放在哪个目录下: 确定放在哪个目录下的方法如下: 首先要看你的项目是java项目还是java web项目: A, java项目...
NULL 博文链接:https://lijie-insist.iteye.com/blog/2160015