/*
 * An XML document type.
 * Localname: DuplicateElimination
 * Namespace: http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd
 * Java type: org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DuplicateEliminationDocument
 *
 * Automatically generated - do not modify.
 */
package org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.impl;
/**
 * A document containing one DuplicateElimination(@http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd) element.
 *
 * This is a complex type.
 */
public class DuplicateEliminationDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DuplicateEliminationDocument
{
    
    public DuplicateEliminationDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName DUPLICATEELIMINATION$0 = 
        new javax.xml.namespace.QName("http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd", "DuplicateElimination");
    
    
    /**
     * Gets the "DuplicateElimination" element
     */
    public org.apache.xmlbeans.XmlObject getDuplicateElimination()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlObject target = null;
            target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(DUPLICATEELIMINATION$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "DuplicateElimination" element
     */
    public void setDuplicateElimination(org.apache.xmlbeans.XmlObject duplicateElimination)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlObject target = null;
            target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(DUPLICATEELIMINATION$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(DUPLICATEELIMINATION$0);
            }
            target.set(duplicateElimination);
        }
    }
    
    /**
     * Appends and returns a new empty "DuplicateElimination" element
     */
    public org.apache.xmlbeans.XmlObject addNewDuplicateElimination()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlObject target = null;
            target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(DUPLICATEELIMINATION$0);
            return target;
        }
    }
}
