/*
 * An XML document type.
 * Localname: trading-partner-management
 * Namespace: http://www.bea.com/2003/03/wli/tpm
 * Java type: com.bea.x2003.x03.wli.tpm.TradingPartnerManagementDocument
 *
 * Automatically generated - do not modify.
 */
package com.bea.x2003.x03.wli.tpm.impl;
/**
 * A document containing one trading-partner-management(@http://www.bea.com/2003/03/wli/tpm) element.
 *
 * This is a complex type.
 */
public class TradingPartnerManagementDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.bea.x2003.x03.wli.tpm.TradingPartnerManagementDocument
{
    
    public TradingPartnerManagementDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName TRADINGPARTNERMANAGEMENT$0 = 
        new javax.xml.namespace.QName("http://www.bea.com/2003/03/wli/tpm", "trading-partner-management");
    
    
    /**
     * Gets the "trading-partner-management" element
     */
    public com.bea.x2003.x03.wli.tpm.TradingPartnerManagementDocument.TradingPartnerManagement getTradingPartnerManagement()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.bea.x2003.x03.wli.tpm.TradingPartnerManagementDocument.TradingPartnerManagement target = null;
            target = (com.bea.x2003.x03.wli.tpm.TradingPartnerManagementDocument.TradingPartnerManagement)get_store().find_element_user(TRADINGPARTNERMANAGEMENT$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "trading-partner-management" element
     */
    public void setTradingPartnerManagement(com.bea.x2003.x03.wli.tpm.TradingPartnerManagementDocument.TradingPartnerManagement tradingPartnerManagement)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.bea.x2003.x03.wli.tpm.TradingPartnerManagementDocument.TradingPartnerManagement target = null;
            target = (com.bea.x2003.x03.wli.tpm.TradingPartnerManagementDocument.TradingPartnerManagement)get_store().find_element_user(TRADINGPARTNERMANAGEMENT$0, 0);
            if (target == null)
            {
                target = (com.bea.x2003.x03.wli.tpm.TradingPartnerManagementDocument.TradingPartnerManagement)get_store().add_element_user(TRADINGPARTNERMANAGEMENT$0);
            }
            target.set(tradingPartnerManagement);
        }
    }
    
    /**
     * Appends and returns a new empty "trading-partner-management" element
     */
    public com.bea.x2003.x03.wli.tpm.TradingPartnerManagementDocument.TradingPartnerManagement addNewTradingPartnerManagement()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.bea.x2003.x03.wli.tpm.TradingPartnerManagementDocument.TradingPartnerManagement target = null;
            target = (com.bea.x2003.x03.wli.tpm.TradingPartnerManagementDocument.TradingPartnerManagement)get_store().add_element_user(TRADINGPARTNERMANAGEMENT$0);
            return target;
        }
    }
    /**
     * An XML trading-partner-management(@http://www.bea.com/2003/03/wli/tpm).
     *
     * This is a complex type.
     */
    public static class TradingPartnerManagementImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.bea.x2003.x03.wli.tpm.TradingPartnerManagementDocument.TradingPartnerManagement
    {
        
        public TradingPartnerManagementImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName TRADINGPARTNER$0 = 
            new javax.xml.namespace.QName("http://www.bea.com/2003/03/wli/tpm", "trading-partner");
        private static final javax.xml.namespace.QName SERVICE$2 = 
            new javax.xml.namespace.QName("http://www.bea.com/2003/03/wli/tpm", "service");
        private static final javax.xml.namespace.QName MESSAGETRACKINGDEFAULT$4 = 
            new javax.xml.namespace.QName("", "message-tracking-default");
        private static final javax.xml.namespace.QName MESSAGETRACE$6 = 
            new javax.xml.namespace.QName("", "message-trace");
        private static final javax.xml.namespace.QName MESSAGETRACEDIRECTORY$8 = 
            new javax.xml.namespace.QName("", "message-trace-directory");
        private static final javax.xml.namespace.QName SECUREAUDITLOGGING$10 = 
            new javax.xml.namespace.QName("", "secure-audit-logging");
        private static final javax.xml.namespace.QName TESTMODE$12 = 
            new javax.xml.namespace.QName("", "test-mode");
        
        
        /**
         * Gets a List of "trading-partner" elements
         */
        public java.util.List<com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner> getTradingPartnerList()
        {
            final class TradingPartnerList extends java.util.AbstractList<com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner>
            {
                public com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner get(int i)
                    { return TradingPartnerManagementImpl.this.getTradingPartnerArray(i); }
                
                public com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner set(int i, com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner o)
                {
                    com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner old = TradingPartnerManagementImpl.this.getTradingPartnerArray(i);
                    TradingPartnerManagementImpl.this.setTradingPartnerArray(i, o);
                    return old;
                }
                
                public void add(int i, com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner o)
                    { TradingPartnerManagementImpl.this.insertNewTradingPartner(i).set(o); }
                
                public com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner remove(int i)
                {
                    com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner old = TradingPartnerManagementImpl.this.getTradingPartnerArray(i);
                    TradingPartnerManagementImpl.this.removeTradingPartner(i);
                    return old;
                }
                
                public int size()
                    { return TradingPartnerManagementImpl.this.sizeOfTradingPartnerArray(); }
                
            }
            
            synchronized (monitor())
            {
                check_orphaned();
                return new TradingPartnerList();
            }
        }
        
        /**
         * Gets array of all "trading-partner" elements
         */
        public com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner[] getTradingPartnerArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List targetList = new java.util.ArrayList();
                get_store().find_all_element_users(TRADINGPARTNER$0, targetList);
                com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner[] result = new com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "trading-partner" element
         */
        public com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner getTradingPartnerArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner target = null;
                target = (com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner)get_store().find_element_user(TRADINGPARTNER$0, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "trading-partner" element
         */
        public int sizeOfTradingPartnerArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(TRADINGPARTNER$0);
            }
        }
        
        /**
         * Sets array of all "trading-partner" element
         */
        public void setTradingPartnerArray(com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner[] tradingPartnerArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(tradingPartnerArray, TRADINGPARTNER$0);
            }
        }
        
        /**
         * Sets ith "trading-partner" element
         */
        public void setTradingPartnerArray(int i, com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner tradingPartner)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner target = null;
                target = (com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner)get_store().find_element_user(TRADINGPARTNER$0, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.set(tradingPartner);
            }
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "trading-partner" element
         */
        public com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner insertNewTradingPartner(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner target = null;
                target = (com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner)get_store().insert_element_user(TRADINGPARTNER$0, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "trading-partner" element
         */
        public com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner addNewTradingPartner()
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner target = null;
                target = (com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner)get_store().add_element_user(TRADINGPARTNER$0);
                return target;
            }
        }
        
        /**
         * Removes the ith "trading-partner" element
         */
        public void removeTradingPartner(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(TRADINGPARTNER$0, i);
            }
        }
        
        /**
         * Gets a List of "service" elements
         */
        public java.util.List<com.bea.x2003.x03.wli.tpm.ServiceDocument.Service> getServiceList()
        {
            final class ServiceList extends java.util.AbstractList<com.bea.x2003.x03.wli.tpm.ServiceDocument.Service>
            {
                public com.bea.x2003.x03.wli.tpm.ServiceDocument.Service get(int i)
                    { return TradingPartnerManagementImpl.this.getServiceArray(i); }
                
                public com.bea.x2003.x03.wli.tpm.ServiceDocument.Service set(int i, com.bea.x2003.x03.wli.tpm.ServiceDocument.Service o)
                {
                    com.bea.x2003.x03.wli.tpm.ServiceDocument.Service old = TradingPartnerManagementImpl.this.getServiceArray(i);
                    TradingPartnerManagementImpl.this.setServiceArray(i, o);
                    return old;
                }
                
                public void add(int i, com.bea.x2003.x03.wli.tpm.ServiceDocument.Service o)
                    { TradingPartnerManagementImpl.this.insertNewService(i).set(o); }
                
                public com.bea.x2003.x03.wli.tpm.ServiceDocument.Service remove(int i)
                {
                    com.bea.x2003.x03.wli.tpm.ServiceDocument.Service old = TradingPartnerManagementImpl.this.getServiceArray(i);
                    TradingPartnerManagementImpl.this.removeService(i);
                    return old;
                }
                
                public int size()
                    { return TradingPartnerManagementImpl.this.sizeOfServiceArray(); }
                
            }
            
            synchronized (monitor())
            {
                check_orphaned();
                return new ServiceList();
            }
        }
        
        /**
         * Gets array of all "service" elements
         */
        public com.bea.x2003.x03.wli.tpm.ServiceDocument.Service[] getServiceArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List targetList = new java.util.ArrayList();
                get_store().find_all_element_users(SERVICE$2, targetList);
                com.bea.x2003.x03.wli.tpm.ServiceDocument.Service[] result = new com.bea.x2003.x03.wli.tpm.ServiceDocument.Service[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "service" element
         */
        public com.bea.x2003.x03.wli.tpm.ServiceDocument.Service getServiceArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.ServiceDocument.Service target = null;
                target = (com.bea.x2003.x03.wli.tpm.ServiceDocument.Service)get_store().find_element_user(SERVICE$2, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "service" element
         */
        public int sizeOfServiceArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(SERVICE$2);
            }
        }
        
        /**
         * Sets array of all "service" element
         */
        public void setServiceArray(com.bea.x2003.x03.wli.tpm.ServiceDocument.Service[] serviceArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(serviceArray, SERVICE$2);
            }
        }
        
        /**
         * Sets ith "service" element
         */
        public void setServiceArray(int i, com.bea.x2003.x03.wli.tpm.ServiceDocument.Service service)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.ServiceDocument.Service target = null;
                target = (com.bea.x2003.x03.wli.tpm.ServiceDocument.Service)get_store().find_element_user(SERVICE$2, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.set(service);
            }
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "service" element
         */
        public com.bea.x2003.x03.wli.tpm.ServiceDocument.Service insertNewService(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.ServiceDocument.Service target = null;
                target = (com.bea.x2003.x03.wli.tpm.ServiceDocument.Service)get_store().insert_element_user(SERVICE$2, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "service" element
         */
        public com.bea.x2003.x03.wli.tpm.ServiceDocument.Service addNewService()
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.ServiceDocument.Service target = null;
                target = (com.bea.x2003.x03.wli.tpm.ServiceDocument.Service)get_store().add_element_user(SERVICE$2);
                return target;
            }
        }
        
        /**
         * Removes the ith "service" element
         */
        public void removeService(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(SERVICE$2, i);
            }
        }
        
        /**
         * Gets the "message-tracking-default" attribute
         */
        public com.bea.x2003.x03.wli.tpm.TradingPartnerManagementDocument.TradingPartnerManagement.MessageTrackingDefault.Enum getMessageTrackingDefault()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MESSAGETRACKINGDEFAULT$4);
                if (target == null)
                {
                    return null;
                }
                return (com.bea.x2003.x03.wli.tpm.TradingPartnerManagementDocument.TradingPartnerManagement.MessageTrackingDefault.Enum)target.getEnumValue();
            }
        }
        
        /**
         * Gets (as xml) the "message-tracking-default" attribute
         */
        public com.bea.x2003.x03.wli.tpm.TradingPartnerManagementDocument.TradingPartnerManagement.MessageTrackingDefault xgetMessageTrackingDefault()
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.TradingPartnerManagementDocument.TradingPartnerManagement.MessageTrackingDefault target = null;
                target = (com.bea.x2003.x03.wli.tpm.TradingPartnerManagementDocument.TradingPartnerManagement.MessageTrackingDefault)get_store().find_attribute_user(MESSAGETRACKINGDEFAULT$4);
                return target;
            }
        }
        
        /**
         * True if has "message-tracking-default" attribute
         */
        public boolean isSetMessageTrackingDefault()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(MESSAGETRACKINGDEFAULT$4) != null;
            }
        }
        
        /**
         * Sets the "message-tracking-default" attribute
         */
        public void setMessageTrackingDefault(com.bea.x2003.x03.wli.tpm.TradingPartnerManagementDocument.TradingPartnerManagement.MessageTrackingDefault.Enum messageTrackingDefault)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MESSAGETRACKINGDEFAULT$4);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(MESSAGETRACKINGDEFAULT$4);
                }
                target.setEnumValue(messageTrackingDefault);
            }
        }
        
        /**
         * Sets (as xml) the "message-tracking-default" attribute
         */
        public void xsetMessageTrackingDefault(com.bea.x2003.x03.wli.tpm.TradingPartnerManagementDocument.TradingPartnerManagement.MessageTrackingDefault messageTrackingDefault)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.TradingPartnerManagementDocument.TradingPartnerManagement.MessageTrackingDefault target = null;
                target = (com.bea.x2003.x03.wli.tpm.TradingPartnerManagementDocument.TradingPartnerManagement.MessageTrackingDefault)get_store().find_attribute_user(MESSAGETRACKINGDEFAULT$4);
                if (target == null)
                {
                    target = (com.bea.x2003.x03.wli.tpm.TradingPartnerManagementDocument.TradingPartnerManagement.MessageTrackingDefault)get_store().add_attribute_user(MESSAGETRACKINGDEFAULT$4);
                }
                target.set(messageTrackingDefault);
            }
        }
        
        /**
         * Unsets the "message-tracking-default" attribute
         */
        public void unsetMessageTrackingDefault()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(MESSAGETRACKINGDEFAULT$4);
            }
        }
        
        /**
         * Gets the "message-trace" attribute
         */
        public boolean getMessageTrace()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MESSAGETRACE$6);
                if (target == null)
                {
                    return false;
                }
                return target.getBooleanValue();
            }
        }
        
        /**
         * Gets (as xml) the "message-trace" attribute
         */
        public org.apache.xmlbeans.XmlBoolean xgetMessageTrace()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlBoolean target = null;
                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(MESSAGETRACE$6);
                return target;
            }
        }
        
        /**
         * True if has "message-trace" attribute
         */
        public boolean isSetMessageTrace()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(MESSAGETRACE$6) != null;
            }
        }
        
        /**
         * Sets the "message-trace" attribute
         */
        public void setMessageTrace(boolean messageTrace)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MESSAGETRACE$6);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(MESSAGETRACE$6);
                }
                target.setBooleanValue(messageTrace);
            }
        }
        
        /**
         * Sets (as xml) the "message-trace" attribute
         */
        public void xsetMessageTrace(org.apache.xmlbeans.XmlBoolean messageTrace)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlBoolean target = null;
                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(MESSAGETRACE$6);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(MESSAGETRACE$6);
                }
                target.set(messageTrace);
            }
        }
        
        /**
         * Unsets the "message-trace" attribute
         */
        public void unsetMessageTrace()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(MESSAGETRACE$6);
            }
        }
        
        /**
         * Gets the "message-trace-directory" attribute
         */
        public java.lang.String getMessageTraceDirectory()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MESSAGETRACEDIRECTORY$8);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "message-trace-directory" attribute
         */
        public org.apache.xmlbeans.XmlString xgetMessageTraceDirectory()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(MESSAGETRACEDIRECTORY$8);
                return target;
            }
        }
        
        /**
         * True if has "message-trace-directory" attribute
         */
        public boolean isSetMessageTraceDirectory()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(MESSAGETRACEDIRECTORY$8) != null;
            }
        }
        
        /**
         * Sets the "message-trace-directory" attribute
         */
        public void setMessageTraceDirectory(java.lang.String messageTraceDirectory)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MESSAGETRACEDIRECTORY$8);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(MESSAGETRACEDIRECTORY$8);
                }
                target.setStringValue(messageTraceDirectory);
            }
        }
        
        /**
         * Sets (as xml) the "message-trace-directory" attribute
         */
        public void xsetMessageTraceDirectory(org.apache.xmlbeans.XmlString messageTraceDirectory)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(MESSAGETRACEDIRECTORY$8);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(MESSAGETRACEDIRECTORY$8);
                }
                target.set(messageTraceDirectory);
            }
        }
        
        /**
         * Unsets the "message-trace-directory" attribute
         */
        public void unsetMessageTraceDirectory()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(MESSAGETRACEDIRECTORY$8);
            }
        }
        
        /**
         * Gets the "secure-audit-logging" attribute
         */
        public boolean getSecureAuditLogging()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SECUREAUDITLOGGING$10);
                if (target == null)
                {
                    return false;
                }
                return target.getBooleanValue();
            }
        }
        
        /**
         * Gets (as xml) the "secure-audit-logging" attribute
         */
        public org.apache.xmlbeans.XmlBoolean xgetSecureAuditLogging()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlBoolean target = null;
                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(SECUREAUDITLOGGING$10);
                return target;
            }
        }
        
        /**
         * True if has "secure-audit-logging" attribute
         */
        public boolean isSetSecureAuditLogging()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(SECUREAUDITLOGGING$10) != null;
            }
        }
        
        /**
         * Sets the "secure-audit-logging" attribute
         */
        public void setSecureAuditLogging(boolean secureAuditLogging)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SECUREAUDITLOGGING$10);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SECUREAUDITLOGGING$10);
                }
                target.setBooleanValue(secureAuditLogging);
            }
        }
        
        /**
         * Sets (as xml) the "secure-audit-logging" attribute
         */
        public void xsetSecureAuditLogging(org.apache.xmlbeans.XmlBoolean secureAuditLogging)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlBoolean target = null;
                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(SECUREAUDITLOGGING$10);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(SECUREAUDITLOGGING$10);
                }
                target.set(secureAuditLogging);
            }
        }
        
        /**
         * Unsets the "secure-audit-logging" attribute
         */
        public void unsetSecureAuditLogging()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(SECUREAUDITLOGGING$10);
            }
        }
        
        /**
         * Gets the "test-mode" attribute
         */
        public boolean getTestMode()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TESTMODE$12);
                if (target == null)
                {
                    return false;
                }
                return target.getBooleanValue();
            }
        }
        
        /**
         * Gets (as xml) the "test-mode" attribute
         */
        public org.apache.xmlbeans.XmlBoolean xgetTestMode()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlBoolean target = null;
                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(TESTMODE$12);
                return target;
            }
        }
        
        /**
         * True if has "test-mode" attribute
         */
        public boolean isSetTestMode()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(TESTMODE$12) != null;
            }
        }
        
        /**
         * Sets the "test-mode" attribute
         */
        public void setTestMode(boolean testMode)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TESTMODE$12);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TESTMODE$12);
                }
                target.setBooleanValue(testMode);
            }
        }
        
        /**
         * Sets (as xml) the "test-mode" attribute
         */
        public void xsetTestMode(org.apache.xmlbeans.XmlBoolean testMode)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlBoolean target = null;
                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(TESTMODE$12);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(TESTMODE$12);
                }
                target.set(testMode);
            }
        }
        
        /**
         * Unsets the "test-mode" attribute
         */
        public void unsetTestMode()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(TESTMODE$12);
            }
        }
        /**
         * An XML message-tracking-default(@).
         *
         * This is an atomic type that is a restriction of com.bea.x2003.x03.wli.tpm.TradingPartnerManagementDocument$TradingPartnerManagement$MessageTrackingDefault.
         */
        public static class MessageTrackingDefaultImpl extends org.apache.xmlbeans.impl.values.JavaStringEnumerationHolderEx implements com.bea.x2003.x03.wli.tpm.TradingPartnerManagementDocument.TradingPartnerManagement.MessageTrackingDefault
        {
            
            public MessageTrackingDefaultImpl(org.apache.xmlbeans.SchemaType sType)
            {
                super(sType, false);
            }
            
            protected MessageTrackingDefaultImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
            {
                super(sType, b);
            }
        }
    }
}
