== State.java--startcollapse--import java.util.Map;import javax.xml.bind.annotation.XmlAccessType;import javax.xml.bind.annotation.XmlAccessorType;import javax.xml.bind.annotation.XmlRootElement;import java.util.Date;@XmlAccessorType(XmlAccessType.FIELD)@XmlRootElement(name = "state")public class State { protected Map<Integer, Date> mapping;}--endcollapse--== schema1.xsd (generated by schemagen State.java)--startcollapse--<?xml version="1.0" encoding="UTF-8" standalone="yes"?><xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="state" type="state"/> <xs:complexType name="state"> <xs:sequence> <xs:element name="mapping"> <xs:complexType> <xs:sequence> <xs:element name="entry" minOccurs="0" maxOccurs="unbounded"> <xs:complexType> <xs:sequence> <xs:element name="key" minOccurs="0" type="xs:int"/> <xs:element name="value" minOccurs="0" type="xs:dateTime"/> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType></xs:schema>--endcollapse-== State.java (generated by xjc from schema1.xsd)--startcollapse--//// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2008.08.02 at 04:10:23 odp. CEST //package generated;import java.util.ArrayList;import java.util.List;import javax.xml.bind.annotation.XmlAccessType;import javax.xml.bind.annotation.XmlAccessorType;import javax.xml.bind.annotation.XmlElement;import javax.xml.bind.annotation.XmlType;import javax.xml.datatype.XMLGregorianCalendar;/** * <p>Java class for state complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> *