/*
 * An XML document type.
 * Localname: MessageHeader
 * Namespace: http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd
 * Java type: org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument
 *
 * Automatically generated - do not modify.
 */
package org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.impl;
/**
 * A document containing one MessageHeader(@http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd) element.
 *
 * This is a complex type.
 */
public class MessageHeaderDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument
{
    
    public MessageHeaderDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName MESSAGEHEADER$0 = 
        new javax.xml.namespace.QName("http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd", "MessageHeader");
    
    
    /**
     * Gets the "MessageHeader" element
     */
    public org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument.MessageHeader getMessageHeader()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument.MessageHeader target = null;
            target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument.MessageHeader)get_store().find_element_user(MESSAGEHEADER$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "MessageHeader" element
     */
    public void setMessageHeader(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument.MessageHeader messageHeader)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument.MessageHeader target = null;
            target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument.MessageHeader)get_store().find_element_user(MESSAGEHEADER$0, 0);
            if (target == null)
            {
                target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument.MessageHeader)get_store().add_element_user(MESSAGEHEADER$0);
            }
            target.set(messageHeader);
        }
    }
    
    /**
     * Appends and returns a new empty "MessageHeader" element
     */
    public org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument.MessageHeader addNewMessageHeader()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument.MessageHeader target = null;
            target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument.MessageHeader)get_store().add_element_user(MESSAGEHEADER$0);
            return target;
        }
    }
    /**
     * An XML MessageHeader(@http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd).
     *
     * This is a complex type.
     */
    public static class MessageHeaderImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageHeaderDocument.MessageHeader
    {
        
        public MessageHeaderImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName FROM$0 = 
            new javax.xml.namespace.QName("http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd", "From");
        private static final javax.xml.namespace.QName TO$2 = 
            new javax.xml.namespace.QName("http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd", "To");
        private static final javax.xml.namespace.QName CPAID$4 = 
            new javax.xml.namespace.QName("http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd", "CPAId");
        private static final javax.xml.namespace.QName CONVERSATIONID$6 = 
            new javax.xml.namespace.QName("http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd", "ConversationId");
        private static final javax.xml.namespace.QName SERVICE$8 = 
            new javax.xml.namespace.QName("http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd", "Service");
        private static final javax.xml.namespace.QName ACTION$10 = 
            new javax.xml.namespace.QName("http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd", "Action");
        private static final javax.xml.namespace.QName MESSAGEDATA$12 = 
            new javax.xml.namespace.QName("http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd", "MessageData");
        private static final javax.xml.namespace.QName DUPLICATEELIMINATION$14 = 
            new javax.xml.namespace.QName("http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd", "DuplicateElimination");
        private static final javax.xml.namespace.QName DESCRIPTION$16 = 
            new javax.xml.namespace.QName("http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd", "Description");
        private static final javax.xml.namespace.QName ID$18 = 
            new javax.xml.namespace.QName("http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd", "id");
        private static final javax.xml.namespace.QName VERSION$20 = 
            new javax.xml.namespace.QName("http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd", "version");
        private static final javax.xml.namespace.QName MUSTUNDERSTAND$22 = 
            new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/envelope/", "mustUnderstand");
        
        
        /**
         * Gets the "From" element
         */
        public org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.FromDocument.From getFrom()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.FromDocument.From target = null;
                target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.FromDocument.From)get_store().find_element_user(FROM$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * Sets the "From" element
         */
        public void setFrom(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.FromDocument.From from)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.FromDocument.From target = null;
                target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.FromDocument.From)get_store().find_element_user(FROM$0, 0);
                if (target == null)
                {
                    target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.FromDocument.From)get_store().add_element_user(FROM$0);
                }
                target.set(from);
            }
        }
        
        /**
         * Appends and returns a new empty "From" element
         */
        public org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.FromDocument.From addNewFrom()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.FromDocument.From target = null;
                target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.FromDocument.From)get_store().add_element_user(FROM$0);
                return target;
            }
        }
        
        /**
         * Gets the "To" element
         */
        public org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ToDocument.To getTo()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ToDocument.To target = null;
                target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ToDocument.To)get_store().find_element_user(TO$2, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * Sets the "To" element
         */
        public void setTo(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ToDocument.To to)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ToDocument.To target = null;
                target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ToDocument.To)get_store().find_element_user(TO$2, 0);
                if (target == null)
                {
                    target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ToDocument.To)get_store().add_element_user(TO$2);
                }
                target.set(to);
            }
        }
        
        /**
         * Appends and returns a new empty "To" element
         */
        public org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ToDocument.To addNewTo()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ToDocument.To target = null;
                target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ToDocument.To)get_store().add_element_user(TO$2);
                return target;
            }
        }
        
        /**
         * Gets the "CPAId" element
         */
        public java.lang.String getCPAId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CPAID$4, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "CPAId" element
         */
        public org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString xgetCPAId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString target = null;
                target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString)get_store().find_element_user(CPAID$4, 0);
                return target;
            }
        }
        
        /**
         * Sets the "CPAId" element
         */
        public void setCPAId(java.lang.String cpaId)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CPAID$4, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CPAID$4);
                }
                target.setStringValue(cpaId);
            }
        }
        
        /**
         * Sets (as xml) the "CPAId" element
         */
        public void xsetCPAId(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString cpaId)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString target = null;
                target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString)get_store().find_element_user(CPAID$4, 0);
                if (target == null)
                {
                    target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString)get_store().add_element_user(CPAID$4);
                }
                target.set(cpaId);
            }
        }
        
        /**
         * Gets the "ConversationId" element
         */
        public java.lang.String getConversationId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONVERSATIONID$6, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "ConversationId" element
         */
        public org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString xgetConversationId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString target = null;
                target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString)get_store().find_element_user(CONVERSATIONID$6, 0);
                return target;
            }
        }
        
        /**
         * Sets the "ConversationId" element
         */
        public void setConversationId(java.lang.String conversationId)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONVERSATIONID$6, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CONVERSATIONID$6);
                }
                target.setStringValue(conversationId);
            }
        }
        
        /**
         * Sets (as xml) the "ConversationId" element
         */
        public void xsetConversationId(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString conversationId)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString target = null;
                target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString)get_store().find_element_user(CONVERSATIONID$6, 0);
                if (target == null)
                {
                    target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString)get_store().add_element_user(CONVERSATIONID$6);
                }
                target.set(conversationId);
            }
        }
        
        /**
         * Gets the "Service" element
         */
        public org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ServiceDocument.Service getService()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ServiceDocument.Service target = null;
                target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ServiceDocument.Service)get_store().find_element_user(SERVICE$8, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * Sets the "Service" element
         */
        public void setService(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ServiceDocument.Service service)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ServiceDocument.Service target = null;
                target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ServiceDocument.Service)get_store().find_element_user(SERVICE$8, 0);
                if (target == null)
                {
                    target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ServiceDocument.Service)get_store().add_element_user(SERVICE$8);
                }
                target.set(service);
            }
        }
        
        /**
         * Appends and returns a new empty "Service" element
         */
        public org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ServiceDocument.Service addNewService()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ServiceDocument.Service target = null;
                target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.ServiceDocument.Service)get_store().add_element_user(SERVICE$8);
                return target;
            }
        }
        
        /**
         * Gets the "Action" element
         */
        public java.lang.String getAction()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACTION$10, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "Action" element
         */
        public org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString xgetAction()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString target = null;
                target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString)get_store().find_element_user(ACTION$10, 0);
                return target;
            }
        }
        
        /**
         * Sets the "Action" element
         */
        public void setAction(java.lang.String action)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACTION$10, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ACTION$10);
                }
                target.setStringValue(action);
            }
        }
        
        /**
         * Sets (as xml) the "Action" element
         */
        public void xsetAction(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString action)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString target = null;
                target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString)get_store().find_element_user(ACTION$10, 0);
                if (target == null)
                {
                    target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString)get_store().add_element_user(ACTION$10);
                }
                target.set(action);
            }
        }
        
        /**
         * Gets the "MessageData" element
         */
        public org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageDataDocument.MessageData getMessageData()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageDataDocument.MessageData target = null;
                target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageDataDocument.MessageData)get_store().find_element_user(MESSAGEDATA$12, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * Sets the "MessageData" element
         */
        public void setMessageData(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageDataDocument.MessageData messageData)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageDataDocument.MessageData target = null;
                target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageDataDocument.MessageData)get_store().find_element_user(MESSAGEDATA$12, 0);
                if (target == null)
                {
                    target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageDataDocument.MessageData)get_store().add_element_user(MESSAGEDATA$12);
                }
                target.set(messageData);
            }
        }
        
        /**
         * Appends and returns a new empty "MessageData" element
         */
        public org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageDataDocument.MessageData addNewMessageData()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageDataDocument.MessageData target = null;
                target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.MessageDataDocument.MessageData)get_store().add_element_user(MESSAGEDATA$12);
                return target;
            }
        }
        
        /**
         * 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$14, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * True if has "DuplicateElimination" element
         */
        public boolean isSetDuplicateElimination()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(DUPLICATEELIMINATION$14) != 0;
            }
        }
        
        /**
         * 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$14, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(DUPLICATEELIMINATION$14);
                }
                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$14);
                return target;
            }
        }
        
        /**
         * Unsets the "DuplicateElimination" element
         */
        public void unsetDuplicateElimination()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(DUPLICATEELIMINATION$14, 0);
            }
        }
        
        /**
         * Gets a List of "Description" elements
         */
        public java.util.List<org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description> getDescriptionList()
        {
            final class DescriptionList extends java.util.AbstractList<org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description>
            {
                public org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description get(int i)
                    { return MessageHeaderImpl.this.getDescriptionArray(i); }
                
                public org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description set(int i, org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description o)
                {
                    org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description old = MessageHeaderImpl.this.getDescriptionArray(i);
                    MessageHeaderImpl.this.setDescriptionArray(i, o);
                    return old;
                }
                
                public void add(int i, org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description o)
                    { MessageHeaderImpl.this.insertNewDescription(i).set(o); }
                
                public org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description remove(int i)
                {
                    org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description old = MessageHeaderImpl.this.getDescriptionArray(i);
                    MessageHeaderImpl.this.removeDescription(i);
                    return old;
                }
                
                public int size()
                    { return MessageHeaderImpl.this.sizeOfDescriptionArray(); }
                
            }
            
            synchronized (monitor())
            {
                check_orphaned();
                return new DescriptionList();
            }
        }
        
        /**
         * Gets array of all "Description" elements
         */
        public org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description[] getDescriptionArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List targetList = new java.util.ArrayList();
                get_store().find_all_element_users(DESCRIPTION$16, targetList);
                org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description[] result = new org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "Description" element
         */
        public org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description getDescriptionArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description target = null;
                target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description)get_store().find_element_user(DESCRIPTION$16, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "Description" element
         */
        public int sizeOfDescriptionArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(DESCRIPTION$16);
            }
        }
        
        /**
         * Sets array of all "Description" element
         */
        public void setDescriptionArray(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description[] descriptionArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(descriptionArray, DESCRIPTION$16);
            }
        }
        
        /**
         * Sets ith "Description" element
         */
        public void setDescriptionArray(int i, org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description description)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description target = null;
                target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description)get_store().find_element_user(DESCRIPTION$16, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.set(description);
            }
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "Description" element
         */
        public org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description insertNewDescription(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description target = null;
                target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description)get_store().insert_element_user(DESCRIPTION$16, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "Description" element
         */
        public org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description addNewDescription()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description target = null;
                target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.DescriptionDocument.Description)get_store().add_element_user(DESCRIPTION$16);
                return target;
            }
        }
        
        /**
         * Removes the ith "Description" element
         */
        public void removeDescription(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(DESCRIPTION$16, i);
            }
        }
        
        /**
         * Gets the "id" attribute
         */
        public java.lang.String getId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$18);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "id" attribute
         */
        public org.apache.xmlbeans.XmlID xgetId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlID target = null;
                target = (org.apache.xmlbeans.XmlID)get_store().find_attribute_user(ID$18);
                return target;
            }
        }
        
        /**
         * True if has "id" attribute
         */
        public boolean isSetId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(ID$18) != null;
            }
        }
        
        /**
         * Sets the "id" attribute
         */
        public void setId(java.lang.String id)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$18);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ID$18);
                }
                target.setStringValue(id);
            }
        }
        
        /**
         * Sets (as xml) the "id" attribute
         */
        public void xsetId(org.apache.xmlbeans.XmlID id)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlID target = null;
                target = (org.apache.xmlbeans.XmlID)get_store().find_attribute_user(ID$18);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlID)get_store().add_attribute_user(ID$18);
                }
                target.set(id);
            }
        }
        
        /**
         * Unsets the "id" attribute
         */
        public void unsetId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(ID$18);
            }
        }
        
        /**
         * Gets the "version" attribute
         */
        public java.lang.String getVersion()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VERSION$20);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "version" attribute
         */
        public org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString xgetVersion()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString target = null;
                target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString)get_store().find_attribute_user(VERSION$20);
                return target;
            }
        }
        
        /**
         * Sets the "version" attribute
         */
        public void setVersion(java.lang.String version)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VERSION$20);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(VERSION$20);
                }
                target.setStringValue(version);
            }
        }
        
        /**
         * Sets (as xml) the "version" attribute
         */
        public void xsetVersion(org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString version)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString target = null;
                target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString)get_store().find_attribute_user(VERSION$20);
                if (target == null)
                {
                    target = (org.oasisOpen.committees.ebxmlMsg.schema.msgHeader20.NonEmptyString)get_store().add_attribute_user(VERSION$20);
                }
                target.set(version);
            }
        }
        
        /**
         * Gets the "mustUnderstand" attribute
         */
        public boolean getMustUnderstand()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MUSTUNDERSTAND$22);
                if (target == null)
                {
                    return false;
                }
                return target.getBooleanValue();
            }
        }
        
        /**
         * Gets (as xml) the "mustUnderstand" attribute
         */
        public org.xmlsoap.schemas.soap.envelope.MustUnderstandAttribute.MustUnderstand xgetMustUnderstand()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.xmlsoap.schemas.soap.envelope.MustUnderstandAttribute.MustUnderstand target = null;
                target = (org.xmlsoap.schemas.soap.envelope.MustUnderstandAttribute.MustUnderstand)get_store().find_attribute_user(MUSTUNDERSTAND$22);
                return target;
            }
        }
        
        /**
         * Sets the "mustUnderstand" attribute
         */
        public void setMustUnderstand(boolean mustUnderstand)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MUSTUNDERSTAND$22);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(MUSTUNDERSTAND$22);
                }
                target.setBooleanValue(mustUnderstand);
            }
        }
        
        /**
         * Sets (as xml) the "mustUnderstand" attribute
         */
        public void xsetMustUnderstand(org.xmlsoap.schemas.soap.envelope.MustUnderstandAttribute.MustUnderstand mustUnderstand)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.xmlsoap.schemas.soap.envelope.MustUnderstandAttribute.MustUnderstand target = null;
                target = (org.xmlsoap.schemas.soap.envelope.MustUnderstandAttribute.MustUnderstand)get_store().find_attribute_user(MUSTUNDERSTAND$22);
                if (target == null)
                {
                    target = (org.xmlsoap.schemas.soap.envelope.MustUnderstandAttribute.MustUnderstand)get_store().add_attribute_user(MUSTUNDERSTAND$22);
                }
                target.set(mustUnderstand);
            }
        }
    }
}
