/*
 * XML Type:  Body
 * Namespace: http://schemas.xmlsoap.org/soap/envelope/
 * Java type: org.xmlsoap.schemas.soap.envelope.Body
 *
 * Automatically generated - do not modify.
 */
package org.xmlsoap.schemas.soap.envelope.impl;
/**
 * An XML Body(@http://schemas.xmlsoap.org/soap/envelope/).
 *
 * This is a complex type.
 */
public class BodyImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.xmlsoap.schemas.soap.envelope.Body
{
    
    public BodyImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName MANIFEST$0 = 
        new javax.xml.namespace.QName("http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd", "Manifest");
    
    
    /**
     * Gets the "Manifest" element
     */
    public org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument.Manifest getManifest()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument.Manifest target = null;
            target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument.Manifest)get_store().find_element_user(MANIFEST$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "Manifest" element
     */
    public boolean isSetManifest()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(MANIFEST$0) != 0;
        }
    }
    
    /**
     * Sets the "Manifest" element
     */
    public void setManifest(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument.Manifest manifest)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument.Manifest target = null;
            target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument.Manifest)get_store().find_element_user(MANIFEST$0, 0);
            if (target == null)
            {
                target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument.Manifest)get_store().add_element_user(MANIFEST$0);
            }
            target.set(manifest);
        }
    }
    
    /**
     * Appends and returns a new empty "Manifest" element
     */
    public org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument.Manifest addNewManifest()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument.Manifest target = null;
            target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ManifestDocument.Manifest)get_store().add_element_user(MANIFEST$0);
            return target;
        }
    }
    
    /**
     * Unsets the "Manifest" element
     */
    public void unsetManifest()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(MANIFEST$0, 0);
        }
    }
}
