
package org.openengsb.core.xmlmapping;

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

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

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

    /** 
     * 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;
    }
}


package org.openengsb.core.xmlmapping;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

@XmlType(propOrder = { "key", "value" })
public class XMLMapEntry
{
    private XMLMappable key;
    private XMLMappable value;

    @XmlElement(required = true)
    public XMLMappable getKey() {
        return key;
    }

    public void setKey(XMLMappable key) {
        this.key = key;
    }

    @XmlElement(required = true)
    public XMLMappable getValue() {
        return value;
    }

    public void setValue(XMLMappable value) {
        this.value = value;
    }
}

annotate mapentry class