
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="XMLMappableList">
 *   &lt;xs:sequence>
 *     &lt;xs:element type="XMLMappable" name="mappable" maxOccurs="unbounded"/>
 *   &lt;/xs:sequence>
 * &lt;/xs:complexType>
 * </pre>
 */
public class XMLMappableList
{
    private List<XMLMappable> mappableList = new ArrayList<XMLMappable>();

    /** 
     * Get the list of 'mappable' element items.
     * 
     * @return list
     */
    public List<XMLMappable> getMappables() {
        return mappableList;
    }

    /** 
     * Set the list of 'mappable' element items.
     * 
     * @param list
     */
    public void setMappables(List<XMLMappable> list) {
        mappableList = list;
    }
}

@@ -90,689 +90,326 @@
 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=%22XMLMappableList%22%3E%0A *   &lt;xs:sequence%3E%0A *     &lt;xs:element type=%22XMLMappable%22 name=%22mappable%22 maxOccurs=%22unbounded%22/%3E%0A *   &lt;/xs:sequence%3E%0A * &lt;/xs:complexType%3E%0A * %3C/pre%3E%0A */%0Apublic class XMLMappableList%0A%7B%0A    private List%3CXMLMappable%3E mappableList = new ArrayList%3CXMLMappable%3E();%0A%0A    /** %0A     * Get the list of 'mappable' element items.%0A     * %0A     * @return list%0A     */%0A    public List%3CXMLMappable%3E getMappables() %7B%0A        return mappableList;%0A    %7D%0A%0A    /** %0A     * Set the list of 'mappable' element items.%0A     * %0A     * @param list%0A     */
+import javax.xml.bind.annotation.XmlElement;%0Aimport javax.xml.bind.annotation.XmlType;%0A%0A@XmlType%0Apublic class XMLMappableList%0A%7B%0A    private List%3CXMLMappable%3E mappableList = new ArrayList%3CXMLMappable%3E();%0A%0A    @XmlElement(required = true)%0A    public List%3CXMLMappable%3E getMappables() %7B%0A        return mappableList;%0A    %7D%0A
 %0A   

annotate mappablelist class