
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="XMLEvent">
 *   &lt;xs:sequence>
 *     &lt;xs:element type="xs:string" name="className"/>
 *     &lt;xs:element type="xs:string" name="domain"/>
 *     &lt;xs:element type="xs:string" name="name"/>
 *     &lt;xs:element type="xs:string" nillable="true" name="toolConnector"/>
 *     &lt;xs:element type="XMLMapEntry" name="elements" maxOccurs="unbounded"/>
 *   &lt;/xs:sequence>
 * &lt;/xs:complexType>
 * </pre>
 */
public class XMLEvent
{
    private String className;
    private String domain;
    private String name;
    private String toolConnector;
    private List<XMLMapEntry> elementList = new ArrayList<XMLMapEntry>();

    /** 
     * 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 'domain' element value.
     * 
     * @return value
     */
    public String getDomain() {
        return domain;
    }

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

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

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

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

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

    /** 
     * Get the list of 'elements' element items.
     * 
     * @return list
     */
    public List<XMLMapEntry> getElements() {
        return elementList;
    }

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

@@ -90,391 +90,215 @@
 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=%22XMLEvent%22%3E%0A *   &lt;xs:sequence%3E%0A *     &lt;xs:element type=%22xs:string%22 name=%22className%22/%3E%0A *     &lt;xs:element type=%22xs:string%22 name=%22domain%22/%3E%0A *     &lt;xs:element type=%22xs:string%22 name=%22name%22/%3E%0A *     &lt;xs:element type=%22xs:string%22 nillable=%22true%22 
+import javax.xml.bind.annotation.XmlElement;%0Aimport javax.xml.bind.annotation.XmlRootElement;%0Aimport javax.xml.bind.annotation.XmlType;%0A%0A@XmlRootElement%0A@XmlType(propOrder = %7B %22className%22, %22domain%22, %22
 name
-=
+%22, 
 %22too
@@ -312,152 +312,23 @@
 tor%22
-/%3E%0A *     &lt;xs:element type=%22XMLMapEntry%22 name=%22elements%22 maxOccurs=%22unbounded%22/%3E%0A *   &lt;/xs:sequence%3E%0A * &lt;/xs:complexType%3E%0A * %3C/pre%3E%0A */
+, %22elements%22 %7D)
 %0Apub
@@ -547,1590 +547,881 @@
     
-/** %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 'domain' element value.%0A     * %0A     * @return value%0A     */%0A    public String getDomain() %7B%0A        return domain;%0A    %7D%0A%0A    /** %0A     * Set the 'domain' element value.%0A     * %0A     * @param domain%0A     */%0A    public void setDomain(String domain) %7B%0A        this.domain = domain;%0A    %7D%0A%0A    /** %0A     * Get the 'name' element value.%0A     * %0A     * @return value%0A     */%0A    public String getName() %7B%0A        return name;%0A    %7D%0A%0A    /** %0A     * Set the 'name' element value.%0A     * %0A     * @param name%0A     */%0A    public void setName(String name) %7B%0A        this.name = name;%0A    %7D%0A%0A    /** %0A     * Get the 'toolConnector' element value.%0A     * %0A     * @return value%0A     */%0A    public String getToolConnector() %7B%0A        return toolConnector;%0A    %7D%0A%0A    /** %0A     * Set the 'toolConnector' element value.%0A     * %0A     * @param toolConnector%0A     */%0A    public void setToolConnector(String toolConnector) %7B%0A        this.toolConnector = toolConnector;%0A    %7D%0A%0A    /** %0A     * Get the list of 'elements' element items.%0A     * %0A     * @return list%0A     */%0A    public List%3CXMLMapEntry%3E getElements() %7B%0A        return elementList;%0A    %7D%0A%0A    /** %0A     * Set the list of 'elements' element items.%0A     * %0A     * @param list%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 String getDomain() %7B%0A        return domain;%0A    %7D%0A%0A    public void setDomain(String domain) %7B%0A        this.domain = domain;%0A    %7D%0A%0A    @XmlElement(required = true)%0A    public String getName() %7B%0A        return name;%0A    %7D%0A%0A    public void setName(String name) %7B%0A        this.name = name;%0A    %7D%0A%0A    @XmlElement(required = true, nillable = true)%0A    public String getToolConnector() %7B%0A        return toolConnector;%0A    %7D%0A%0A    public void setToolConnector(String toolConnector) %7B%0A        this.toolConnector = toolConnector;%0A    %7D%0A%0A    @XmlElement(required = true)%0A    public List%3CXMLMapEntry%3E getElements() %7B%0A        return elementList;%0A    %7D%0A
 %0A   

annotate event class