上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 46 下一页
  2016年5月20日
摘要: An enum type is annotated with XmlEnum. It has an optional element value of type java.lang.Class which defines the class used for the values used in t 阅读全文
posted @ 2016-05-20 15:35 huey2672 阅读(357) 评论(0) 推荐(0) 编辑
摘要: Provided that XML lets you represent a data item as a single value, there is no cut-and-dried rule for deciding between using an element or an attribu 阅读全文
posted @ 2016-05-20 15:30 huey2672 阅读(143) 评论(0) 推荐(0) 编辑
摘要: The basic annotation for a field that's intended to be an element is XmlElement. It permits you to define the XML element name, the namespace, whether 阅读全文
posted @ 2016-05-20 15:28 huey2672 阅读(186) 评论(0) 推荐(0) 编辑
摘要: If JAXB binds a class to XML, then, by default, all public members will be bound, i.e., public getter and setter pairs, or public fields. Any protecte 阅读全文
posted @ 2016-05-20 14:05 huey2672 阅读(349) 评论(0) 推荐(0) 编辑
摘要: To be able to create objects from XML elements, the unmarshaller must have an object factory with methods for creating all sorts of objects. Therefore 阅读全文
posted @ 2016-05-20 13:11 huey2672 阅读(559) 评论(0) 推荐(0) 编辑
摘要: This annotation can only be used with a package. It defines parameters that are derived from the xsd:schema element. It must be written on a file pack 阅读全文
posted @ 2016-05-20 13:05 huey2672 阅读(173) 评论(0) 推荐(0) 编辑
摘要: This annotation adds information that would be available from a schema type, but isn't implied by a Java class declaration. The annotation has several 阅读全文
posted @ 2016-05-20 12:56 huey2672 阅读(165) 评论(0) 推荐(0) 编辑
摘要: A class that describes an XML element that is to be a top-level element, i.e., one that can function as an XML document, should be annotated with XmlR 阅读全文
posted @ 2016-05-20 12:48 huey2672 阅读(471) 评论(0) 推荐(0) 编辑
摘要: Only a handful of source code lines is required to make a JAXB Marshaller object write a document tree as an XML file. First you obtain a Marshaller f 阅读全文
posted @ 2016-05-20 11:07 huey2672 阅读(217) 评论(0) 推荐(0) 编辑
摘要: Usually hidden in the middle of the list of the classes derived from the types defined in an XML schema there will be one class called ObjectFactory. 阅读全文
posted @ 2016-05-20 10:56 huey2672 阅读(376) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 46 下一页