2016年5月18日
摘要: Validation A considerable part of the XML Schema language deals with facets, enabling the programmer to restrict the basic datatypes. We have seen tha 阅读全文
posted @ 2016-05-18 21:19 huey2672 阅读(357) 评论(0) 推荐(0) 编辑
摘要: A simple approach for unmarshalling an XML document consists of the creation of a JAXB context and the call to unmarshal the document. A JAXBContext o 阅读全文
posted @ 2016-05-18 19:41 huey2672 阅读(235) 评论(0) 推荐(0) 编辑
摘要: Although object orientation isn't a key feature of XML or the XML Schema language, it's still possible to apply the fundamental OO paradigm when desig 阅读全文
posted @ 2016-05-18 16:26 huey2672 阅读(242) 评论(0) 推荐(0) 编辑
摘要: Content: A Value The content of an XML element may be some value, or one or more subordinate elements, or even a combination of both. Let's look at an 阅读全文
posted @ 2016-05-18 15:09 huey2672 阅读(365) 评论(0) 推荐(0) 编辑
摘要: Types for XML elements are constructed using xsd:complexType, even if they do not have content. The snippet below defines a simple element with two at 阅读全文
posted @ 2016-05-18 14:31 huey2672 阅读(127) 评论(0) 推荐(0) 编辑
摘要: If you want a data type that enumerates discrete values you should use a restriction of the schema type xsd:string, enumerating all the values as you 阅读全文
posted @ 2016-05-18 14:16 huey2672 阅读(156) 评论(0) 推荐(0) 编辑
摘要: Data that has no "natural" representation with printable characters must, for inclusion in an XML file, still be represented in printable characters. 阅读全文
posted @ 2016-05-18 13:54 huey2672 阅读(182) 评论(0) 推荐(0) 编辑
摘要: JAXB binds all three of the schema types xsd:date, xsd:time and xsd:dateTime to XMLGregorianCalendar. This class is in the package javax.xml.datatype. 阅读全文
posted @ 2016-05-18 13:16 huey2672 阅读(365) 评论(0) 推荐(0) 编辑
摘要: xjc 是 JAXB 将 xsd 生成 Java 类的工具。 命令格式 xjc [ options ] schema file/URL/dir/jar ... [-b bindinfo ] ... 命令参数 -d dir 在指定的目录生成 Java 类。指定的目录必须是已存在的,XJC 不会创建该目 阅读全文
posted @ 2016-05-18 12:22 huey2672 阅读(459) 评论(0) 推荐(0) 编辑
摘要: Getting Started Hello World Hello World with Namespace xjc - 将 XML Schema 编译成 Java 类 wsimport: 编译 WSDL 生成 JAX-WS 规范的 Java 类 Writing an XML Schema for 阅读全文
posted @ 2016-05-18 10:22 huey2672 阅读(179) 评论(0) 推荐(0) 编辑
摘要: We'll stick with the tradition and use a sort of "Hello World" XML document to illustrate the typical scenario for creating the Java classes and their 阅读全文
posted @ 2016-05-18 10:05 huey2672 阅读(198) 评论(0) 推荐(0) 编辑
摘要: Java Bean Lombok IO Commons-IO - IOUtils Regular Expression 正则表达式常用操作 Concurrency java.util.concurrent API Class Diagram 线程管理 线程的基础操作 ThreadFactory, 使 阅读全文
posted @ 2016-05-18 09:36 huey2672 阅读(343) 评论(0) 推荐(0) 编辑