
package org.openengsb.core.xmlmapping;

/** 
 * Schema fragment(s) for this class:
 * <pre>
 * &lt;xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema" name="XMLField">
 *   &lt;xs:sequence>
 *     &lt;xs:element type="xs:string" name="fieldName"/>
 *     &lt;xs:element type="XMLMappable" name="value"/>
 *   &lt;/xs:sequence>
 * &lt;/xs:complexType>
 * </pre>
 */
public class XMLField
{
    private String fieldName;
    private XMLMappable value;

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

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

    /** 
     * Get the 'value' element value.
     * 
     * @return value
     */
    public XMLMappable getValue() {
        return value;
    }

    /** 
     * Set the 'value' element value.
     * 
     * @param value
     */
    public void setValue(XMLMappable value) {
        this.value = value;
    }
}

@@ -38,996 +38,519 @@
 g;%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=%22XMLField%22%3E%0A *   &lt;xs:sequence%3E%0A *     &lt;xs:element type=%22xs:string%22 name=%22fieldName%22/%3E%0A *     &lt;xs:element type=%22XMLMappable%22 name=%22value%22/%3E%0A *   &lt;/xs:sequence%3E%0A * &lt;/xs:complexType%3E%0A * %3C/pre%3E%0A */%0Apublic class XMLField%0A%7B%0A    private String fieldName;%0A    private XMLMappable value;%0A%0A    /** %0A     * Get the 'fieldName' element value.%0A     * %0A     * @return value%0A     */%0A    public String getFieldName() %7B%0A        return fieldName;%0A    %7D%0A%0A    /** %0A     * Set the 'fieldName' element value.%0A     * %0A     * @param fieldName%0A     */%0A    public void setFieldName(String fieldName) %7B%0A        this.fieldName = fieldName;%0A    %7D%0A%0A    /** %0A     * Get the 'value' element value.%0A     * %0A     * @return value%0A     */%0A    public XMLMappable getValue() %7B%0A        return value;%0A    %7D%0A%0A    /** %0A     * Set the 'value' element value.%0A     * %0A     * @param value%0A     */
+import javax.xml.bind.annotation.XmlElement;%0Aimport javax.xml.bind.annotation.XmlType;%0A%0A@XmlType(propOrder = %7B %22fieldName%22, %22value%22 %7D)%0Apublic class XMLField%0A%7B%0A    private String fieldName;%0A    private XMLMappable value;%0A%0A    @XmlElement(required = true)%0A    public String getFieldName() %7B%0A        return fieldName;%0A    %7D%0A%0A    public void setFieldName(String fieldName) %7B%0A        this.fieldName = fieldName;%0A    %7D%0A%0A    @XmlElement(required = true)%0A    public XMLMappable getValue() %7B%0A        return value;%0A    %7D%0A
 %0A   

annotate field class