What is XStream
XStream is a java library to convert Java Object into XML and back. You can take nearly every arbitrary deeply nested object turn it to XML and read it back without further configuration. You’re done if all you want to have is a persisted object in XML. XStream’s power lies in its extensive list of ‘Converters’ that help convert a wide variety of Java Objects to XML and vice versa. A Converter is a class that specifies how a Java Object should be serialized to XML. XStream comes bundled with a lot of Converters and you can also customize your own.
XStream allows converting a class to XML without modifying the class. It can serialize private and final fields and also inner classes. It can serialize references to objects. XStream has also added security measures that allows you to selectively de-serialize and serialize based on type.
This page provides a series of examples illustrating how a class can be annotated. It acts as a quick and dirty overview of how the framework can be used and also acts as a reference page. All examples can be downloaded for convenience. For further information take a look at the Tutorial.
§Creating nested path elements
Here an example of how to use the Path annotation to create nested elements and attributes using a single annotated class. Below is an example showing two elements nested within a XPath expression.
@Root
public class Example {
@Path("a/b[1]")
@Element
private String x;
@Path("a/b[2]")
@Element
private String y;
}
This page provides a tutorial that will prepare users for using XML serialization. Before this tutorial is attempted it is advisable to have a look at the Javadoc documentation for the framework. Although there are only several annotations and objects involved in the serialization process the framework itself has many powerful features which this tutorial attempts to describe.
January, 2016
Microsoft is making this Specification available under the Open Web Foundation Final Specification Agreement Version 1.0 (“OWF 1.0”) as of October 1, 2012. The OWF 1.0 is available at here.
TypeScript is a trademark of Microsoft Corporation.
客家人 的习俗大致上包括全国性的传统岁序节俗,地方性崇拜、礼节等。
主要节日
- 春节:有拜年,游乐活动等,是最隆重的节日。
- 立春:即交春。
- 元宵节:正月十五是中国民间传统的元宵节。元宵节吃元宵,玩灯,赏灯,猜灯谜。
- 二月二:开正节。
- 清明:客家扫墓习俗多从春分开始,清明达到高潮。
- 端午:客家普遍称为五月节。节日主要内容是吃粽子,雄黄酒,龙舟赛。
- 七月节:也即鬼节。
- 中秋:民间通称八月节。吃月饼,赏月等风俗大体各地相同。
- 重阳节:客家人叫“九月节”。
- 冬至:客家人有“冬大过年”之说。