
package org.openengsb.core.xmlmapping;

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

/** 
 * Schema fragment(s) for this class:
 * <pre>
 * &lt;xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema" name="XMLMethodCall">
 *   &lt;xs:complexType>
 *     &lt;xs:sequence>
 *       &lt;xs:element type="xs:string" name="methodName"/>
 *       &lt;xs:element type="XMLTypedValue" name="args" maxOccurs="unbounded"/>
 *     &lt;/xs:sequence>
 *     &lt;xs:attribute type="xs:string" name="domainConcept"/>
 *   &lt;/xs:complexType>
 * &lt;/xs:element>
 * </pre>
 */
public class XMLMethodCall
{
    private String methodName;
    private List<XMLTypedValue> argList = new ArrayList<XMLTypedValue>();
    private String domainConcept;

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

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

    /** 
     * Get the list of 'args' element items.
     * 
     * @return list
     */
    public List<XMLTypedValue> getArgs() {
        return argList;
    }

    /** 
     * Set the list of 'args' element items.
     * 
     * @param list
     */
    public void setArgs(List<XMLTypedValue> list) {
        argList = list;
    }

    /** 
     * Get the 'domainConcept' attribute value.
     * 
     * @return value
     */
    public String getDomainConcept() {
        return domainConcept;
    }

    /** 
     * Set the 'domainConcept' attribute value.
     * 
     * @param domainConcept
     */
    public void setDomainConcept(String domainConcept) {
        this.domainConcept = domainConcept;
    }
}

@@ -90,1607 +90,923 @@
 t;%0A%0A
-/** %0A * Schema fragment(s) for this class:%0A * %3Cpre%3E%0A * &lt;xs:element xmlns:xs=%22http://www.w3.org/2001/XMLSchema%22 name=%22XMLMethodCall%22%3E%0A *   &lt;xs:complexType%3E%0A *     &lt;xs:sequence%3E%0A *       &lt;xs:element type=%22xs:string%22 name=%22methodName%22/%3E%0A *       &lt;xs:element type=%22XMLTypedValue%22 name=%22args%22 maxOccurs=%22unbounded%22/%3E%0A *     &lt;/xs:sequence%3E%0A *     &lt;xs:attribute type=%22xs:string%22 name=%22domainConcept%22/%3E%0A *   &lt;/xs:complexType%3E%0A * &lt;/xs:element%3E%0A * %3C/pre%3E%0A */%0Apublic class XMLMethodCall%0A%7B%0A    private String methodName;%0A    private List%3CXMLTypedValue%3E argList = new ArrayList%3CXMLTypedValue%3E();%0A    private String domainConcept;%0A%0A    /** %0A     * Get the 'methodName' element value.%0A     * %0A     * @return value%0A     */%0A    public String getMethodName() %7B%0A        return methodName;%0A    %7D%0A%0A    /** %0A     * Set the 'methodName' element value.%0A     * %0A     * @param methodName%0A     */%0A    public void setMethodName(String methodName) %7B%0A        this.methodName = methodName;%0A    %7D%0A%0A    /** %0A     * Get the list of 'args' element items.%0A     * %0A     * @return list%0A     */%0A    public List%3CXMLTypedValue%3E getArgs() %7B%0A        return argList;%0A    %7D%0A%0A    /** %0A     * Set the list of 'args' element items.%0A     * %0A     * @param list%0A     */%0A    public void setArgs(List%3CXMLTypedValue%3E list) %7B%0A        argList = list;%0A    %7D%0A%0A    /** %0A     * Get the 'domainConcept' attribute value.%0A     * %0A     * @return value%0A     */%0A    public String getDomainConcept() %7B%0A        return domainConcept;%0A    %7D%0A%0A    /** %0A     * Set the 'domainConcept' attribute value.%0A     * %0A     * @param domainConcept%0A     */
+import javax.xml.bind.annotation.XmlAttribute;%0Aimport javax.xml.bind.annotation.XmlElement;%0Aimport javax.xml.bind.annotation.XmlRootElement;%0Aimport javax.xml.bind.annotation.XmlType;%0A%0A@XmlRootElement%0A@XmlType(propOrder = %7B %22methodName%22, %22args%22 %7D)%0Apublic class XMLMethodCall%0A%7B%0A    private String methodName;%0A    private List%3CXMLTypedValue%3E argList = new ArrayList%3CXMLTypedValue%3E();%0A    private String domainConcept;%0A%0A    @XmlElement(required = true)%0A    public String getMethodName() %7B%0A        return methodName;%0A    %7D%0A%0A    public void setMethodName(String methodName) %7B%0A        this.methodName = methodName;%0A    %7D%0A%0A    @XmlElement(required = true)%0A    public List%3CXMLTypedValue%3E getArgs() %7B%0A        return argList;%0A    %7D%0A%0A    public void setArgs(List%3CXMLTypedValue%3E list) %7B%0A        argList = list;%0A    %7D%0A%0A    @XmlAttribute(required = true)%0A    public String getDomainConcept() %7B%0A        return domainConcept;%0A    %7D%0A
 %0A   

annotate methodcall class