
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="XMLBean">
 *   &lt;xs:sequence>
 *     &lt;xs:element type="xs:string" name="className"/>
 *     &lt;xs:element type="XMLField" name="fields" maxOccurs="unbounded"/>
 *   &lt;/xs:sequence>
 * &lt;/xs:complexType>
 * </pre>
 */
public class XMLBean
{
    private String className;
    private List<XMLField> fieldList = new ArrayList<XMLField>();

    /** 
     * Get the 'className' element value.
     * 
     * @return value
     */
    public String getClassName() {
        return className;
    }

    /** 
     * Set the 'className' element value.
     * 
     * @param className
     */
    public void setClassName(String className) {
        this.className = className;
    }

    /** 
     * Get the list of 'fields' element items.
     * 
     * @return list
     */
    public List<XMLField> getFields() {
        return fieldList;
    }

    /** 
     * Set the list of 'fields' element items.
     * 
     * @param list
     */
    public void setFields(List<XMLField> list) {
        fieldList = list;
    }
}

@@ -90,1073 +90,562 @@
 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=%22XMLBean%22%3E%0A *   &lt;xs:sequence%3E%0A *     &lt;xs:element type=%22xs:string%22 name=%22className%22/%3E%0A *     &lt;xs:element type=%22XMLField%22 name=%22fields%22 maxOccurs=%22unbounded%22/%3E%0A *   &lt;/xs:sequence%3E%0A * &lt;/xs:complexType%3E%0A * %3C/pre%3E%0A */%0Apublic class XMLBean%0A%7B%0A    private String className;%0A    private List%3CXMLField%3E fieldList = new ArrayList%3CXMLField%3E();%0A%0A    /** %0A     * Get the 'className' element value.%0A     * %0A     * @return value%0A     */%0A    public String getClassName() %7B%0A        return className;%0A    %7D%0A%0A    /** %0A     * Set the 'className' element value.%0A     * %0A     * @param className%0A     */%0A    public void setClassName(String className) %7B%0A        this.className = className;%0A    %7D%0A%0A    /** %0A     * Get the list of 'fields' element items.%0A     * %0A     * @return list%0A     */%0A    public List%3CXMLField%3E getFields() %7B%0A        return fieldList;%0A    %7D%0A%0A    /** %0A     * Set the list of 'fields' element items.%0A     * %0A     * @param list%0A     */
+import javax.xml.bind.annotation.XmlElement;%0Aimport javax.xml.bind.annotation.XmlType;%0A%0A@XmlType(propOrder = %7B %22className%22, %22fields%22 %7D)%0Apublic class XMLBean%0A%7B%0A    private String className;%0A    private List%3CXMLField%3E fieldList = new ArrayList%3CXMLField%3E();%0A%0A    @XmlElement(required = true)%0A    public String getClassName() %7B%0A        return className;%0A    %7D%0A%0A    public void setClassName(String className) %7B%0A        this.className = className;%0A    %7D%0A%0A    @XmlElement(required = true)%0A    public List%3CXMLField%3E getFields() %7B%0A        return fieldList;%0A    %7D%0A
 %0A   

annotate bean class