
package org.openengsb.core.xmlmapping;

import java.util.ArrayList;
import java.util.List;

/** 
 * Schema fragment(s) for this class:
 * <pre>
 * &lt;xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema" name="XMLMapEntryList">
 *   &lt;xs:sequence>
 *     &lt;xs:element type="XMLMapEntry" name="mapEntry" maxOccurs="unbounded"/>
 *   &lt;/xs:sequence>
 * &lt;/xs:complexType>
 * </pre>
 */
public class XMLMapEntryList
{
    private List<XMLMapEntry> mapEntryList = new ArrayList<XMLMapEntry>();

    /** 
     * Get the list of 'mapEntry' element items.
     * 
     * @return list
     */
    public List<XMLMapEntry> getMapEntries() {
        return mapEntryList;
    }

    /** 
     * Set the list of 'mapEntry' element items.
     * 
     * @param list
     */
    public void setMapEntries(List<XMLMapEntry> list) {
        mapEntryList = list;
    }
}

@@ -90,690 +90,327 @@
 t;%0A%0A
-/** %0A * Schema fragment(s) for this class:%0A * %3Cpre%3E%0A * &lt;xs:complexType xmlns:xs=%22http://www.w3.org/2001/XMLSchema%22 name=%22XMLMapEntryList%22%3E%0A *   &lt;xs:sequence%3E%0A *     &lt;xs:element type=%22XMLMapEntry%22 name=%22mapEntry%22 maxOccurs=%22unbounded%22/%3E%0A *   &lt;/xs:sequence%3E%0A * &lt;/xs:complexType%3E%0A * %3C/pre%3E%0A */%0Apublic class XMLMapEntryList%0A%7B%0A    private List%3CXMLMapEntry%3E mapEntryList = new ArrayList%3CXMLMapEntry%3E();%0A%0A    /** %0A     * Get the list of 'mapEntry' element items.%0A     * %0A     * @return list%0A     */%0A    public List%3CXMLMapEntry%3E getMapEntries() %7B%0A        return mapEntryList;%0A    %7D%0A%0A    /** %0A     * Set the list of 'mapEntry' element items.%0A     * %0A     * @param list%0A     */
+import javax.xml.bind.annotation.XmlElement;%0Aimport javax.xml.bind.annotation.XmlType;%0A%0A@XmlType%0Apublic class XMLMapEntryList%0A%7B%0A    private List%3CXMLMapEntry%3E mapEntryList = new ArrayList%3CXMLMapEntry%3E();%0A%0A    @XmlElement(required = true)%0A    public List%3CXMLMapEntry%3E getMapEntries() %7B%0A        return mapEntryList;%0A    %7D%0A
 %0A   

annotate mapentrylist class