/*
 * An XML document type.
 * Localname: trading-partner
 * Namespace: http://www.bea.com/2003/03/wli/tpm
 * Java type: com.bea.x2003.x03.wli.tpm.TradingPartnerDocument
 *
 * Automatically generated - do not modify.
 */
package com.bea.x2003.x03.wli.tpm.impl;
/**
 * A document containing one trading-partner(@http://www.bea.com/2003/03/wli/tpm) element.
 *
 * This is a complex type.
 */
public class TradingPartnerDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.bea.x2003.x03.wli.tpm.TradingPartnerDocument
{
    
    public TradingPartnerDocumentImpl(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");
    
    
    /**
     * Gets the "trading-partner" element
     */
    public com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner getTradingPartner()
    {
        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, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "trading-partner" element
     */
    public void setTradingPartner(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, 0);
            if (target == null)
            {
                target = (com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner)get_store().add_element_user(TRADINGPARTNER$0);
            }
            target.set(tradingPartner);
        }
    }
    
    /**
     * Appends and returns a new empty "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;
        }
    }
    /**
     * An XML trading-partner(@http://www.bea.com/2003/03/wli/tpm).
     *
     * This is a complex type.
     */
    public static class TradingPartnerImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner
    {
        
        public TradingPartnerImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName ADDRESS$0 = 
            new javax.xml.namespace.QName("http://www.bea.com/2003/03/wli/tpm", "address");
        private static final javax.xml.namespace.QName EXTENDEDPROPERTYSET$2 = 
            new javax.xml.namespace.QName("http://www.bea.com/2003/03/wli/tpm", "extended-property-set");
        private static final javax.xml.namespace.QName CLIENTCERTIFICATE$4 = 
            new javax.xml.namespace.QName("http://www.bea.com/2003/03/wli/tpm", "client-certificate");
        private static final javax.xml.namespace.QName SERVERCERTIFICATE$6 = 
            new javax.xml.namespace.QName("http://www.bea.com/2003/03/wli/tpm", "server-certificate");
        private static final javax.xml.namespace.QName ENCRYPTIONCERTIFICATE$8 = 
            new javax.xml.namespace.QName("http://www.bea.com/2003/03/wli/tpm", "encryption-certificate");
        private static final javax.xml.namespace.QName SIGNATURECERTIFICATE$10 = 
            new javax.xml.namespace.QName("http://www.bea.com/2003/03/wli/tpm", "signature-certificate");
        private static final javax.xml.namespace.QName EBXMLBINDING$12 = 
            new javax.xml.namespace.QName("http://www.bea.com/2003/03/wli/tpm", "ebxml-binding");
        private static final javax.xml.namespace.QName ROSETTANETBINDING$14 = 
            new javax.xml.namespace.QName("http://www.bea.com/2003/03/wli/tpm", "rosettanet-binding");
        private static final javax.xml.namespace.QName WEBSERVICEBINDING$16 = 
            new javax.xml.namespace.QName("http://www.bea.com/2003/03/wli/tpm", "web-service-binding");
        private static final javax.xml.namespace.QName NAME$18 = 
            new javax.xml.namespace.QName("", "name");
        private static final javax.xml.namespace.QName DESCRIPTION$20 = 
            new javax.xml.namespace.QName("", "description");
        private static final javax.xml.namespace.QName NOTES$22 = 
            new javax.xml.namespace.QName("", "notes");
        private static final javax.xml.namespace.QName STATUS$24 = 
            new javax.xml.namespace.QName("", "status");
        private static final javax.xml.namespace.QName TYPE$26 = 
            new javax.xml.namespace.QName("", "type");
        private static final javax.xml.namespace.QName ISDEFAULT$28 = 
            new javax.xml.namespace.QName("", "is-default");
        private static final javax.xml.namespace.QName BUSINESSIDTYPE$30 = 
            new javax.xml.namespace.QName("", "business-id-type");
        private static final javax.xml.namespace.QName BUSINESSID$32 = 
            new javax.xml.namespace.QName("", "business-id");
        private static final javax.xml.namespace.QName EMAIL$34 = 
            new javax.xml.namespace.QName("", "email");
        private static final javax.xml.namespace.QName PHONE$36 = 
            new javax.xml.namespace.QName("", "phone");
        private static final javax.xml.namespace.QName FAX$38 = 
            new javax.xml.namespace.QName("", "fax");
        private static final javax.xml.namespace.QName USERNAME$40 = 
            new javax.xml.namespace.QName("", "username");
        
        
        /**
         * Gets the "address" element
         */
        public java.lang.String getAddress()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ADDRESS$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "address" element
         */
        public org.apache.xmlbeans.XmlString xgetAddress()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ADDRESS$0, 0);
                return target;
            }
        }
        
        /**
         * True if has "address" element
         */
        public boolean isSetAddress()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(ADDRESS$0) != 0;
            }
        }
        
        /**
         * Sets the "address" element
         */
        public void setAddress(java.lang.String address)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ADDRESS$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ADDRESS$0);
                }
                target.setStringValue(address);
            }
        }
        
        /**
         * Sets (as xml) the "address" element
         */
        public void xsetAddress(org.apache.xmlbeans.XmlString address)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ADDRESS$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ADDRESS$0);
                }
                target.set(address);
            }
        }
        
        /**
         * Unsets the "address" element
         */
        public void unsetAddress()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(ADDRESS$0, 0);
            }
        }
        
        /**
         * Gets a List of "extended-property-set" elements
         */
        public java.util.List<com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet> getExtendedPropertySetList()
        {
            final class ExtendedPropertySetList extends java.util.AbstractList<com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet>
            {
                public com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet get(int i)
                    { return TradingPartnerImpl.this.getExtendedPropertySetArray(i); }
                
                public com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet set(int i, com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet o)
                {
                    com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet old = TradingPartnerImpl.this.getExtendedPropertySetArray(i);
                    TradingPartnerImpl.this.setExtendedPropertySetArray(i, o);
                    return old;
                }
                
                public void add(int i, com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet o)
                    { TradingPartnerImpl.this.insertNewExtendedPropertySet(i).set(o); }
                
                public com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet remove(int i)
                {
                    com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet old = TradingPartnerImpl.this.getExtendedPropertySetArray(i);
                    TradingPartnerImpl.this.removeExtendedPropertySet(i);
                    return old;
                }
                
                public int size()
                    { return TradingPartnerImpl.this.sizeOfExtendedPropertySetArray(); }
                
            }
            
            synchronized (monitor())
            {
                check_orphaned();
                return new ExtendedPropertySetList();
            }
        }
        
        /**
         * Gets array of all "extended-property-set" elements
         */
        public com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet[] getExtendedPropertySetArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List targetList = new java.util.ArrayList();
                get_store().find_all_element_users(EXTENDEDPROPERTYSET$2, targetList);
                com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet[] result = new com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "extended-property-set" element
         */
        public com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet getExtendedPropertySetArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet target = null;
                target = (com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet)get_store().find_element_user(EXTENDEDPROPERTYSET$2, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "extended-property-set" element
         */
        public int sizeOfExtendedPropertySetArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(EXTENDEDPROPERTYSET$2);
            }
        }
        
        /**
         * Sets array of all "extended-property-set" element
         */
        public void setExtendedPropertySetArray(com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet[] extendedPropertySetArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(extendedPropertySetArray, EXTENDEDPROPERTYSET$2);
            }
        }
        
        /**
         * Sets ith "extended-property-set" element
         */
        public void setExtendedPropertySetArray(int i, com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet extendedPropertySet)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet target = null;
                target = (com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet)get_store().find_element_user(EXTENDEDPROPERTYSET$2, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.set(extendedPropertySet);
            }
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "extended-property-set" element
         */
        public com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet insertNewExtendedPropertySet(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet target = null;
                target = (com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet)get_store().insert_element_user(EXTENDEDPROPERTYSET$2, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "extended-property-set" element
         */
        public com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet addNewExtendedPropertySet()
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet target = null;
                target = (com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet)get_store().add_element_user(EXTENDEDPROPERTYSET$2);
                return target;
            }
        }
        
        /**
         * Removes the ith "extended-property-set" element
         */
        public void removeExtendedPropertySet(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(EXTENDEDPROPERTYSET$2, i);
            }
        }
        
        /**
         * Gets a List of "client-certificate" elements
         */
        public java.util.List<com.bea.x2003.x03.wli.tpm.ClientCertificateDocument.ClientCertificate> getClientCertificateList()
        {
            final class ClientCertificateList extends java.util.AbstractList<com.bea.x2003.x03.wli.tpm.ClientCertificateDocument.ClientCertificate>
            {
                public com.bea.x2003.x03.wli.tpm.ClientCertificateDocument.ClientCertificate get(int i)
                    { return TradingPartnerImpl.this.getClientCertificateArray(i); }
                
                public com.bea.x2003.x03.wli.tpm.ClientCertificateDocument.ClientCertificate set(int i, com.bea.x2003.x03.wli.tpm.ClientCertificateDocument.ClientCertificate o)
                {
                    com.bea.x2003.x03.wli.tpm.ClientCertificateDocument.ClientCertificate old = TradingPartnerImpl.this.getClientCertificateArray(i);
                    TradingPartnerImpl.this.setClientCertificateArray(i, o);
                    return old;
                }
                
                public void add(int i, com.bea.x2003.x03.wli.tpm.ClientCertificateDocument.ClientCertificate o)
                    { TradingPartnerImpl.this.insertNewClientCertificate(i).set(o); }
                
                public com.bea.x2003.x03.wli.tpm.ClientCertificateDocument.ClientCertificate remove(int i)
                {
                    com.bea.x2003.x03.wli.tpm.ClientCertificateDocument.ClientCertificate old = TradingPartnerImpl.this.getClientCertificateArray(i);
                    TradingPartnerImpl.this.removeClientCertificate(i);
                    return old;
                }
                
                public int size()
                    { return TradingPartnerImpl.this.sizeOfClientCertificateArray(); }
                
            }
            
            synchronized (monitor())
            {
                check_orphaned();
                return new ClientCertificateList();
            }
        }
        
        /**
         * Gets array of all "client-certificate" elements
         */
        public com.bea.x2003.x03.wli.tpm.ClientCertificateDocument.ClientCertificate[] getClientCertificateArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List targetList = new java.util.ArrayList();
                get_store().find_all_element_users(CLIENTCERTIFICATE$4, targetList);
                com.bea.x2003.x03.wli.tpm.ClientCertificateDocument.ClientCertificate[] result = new com.bea.x2003.x03.wli.tpm.ClientCertificateDocument.ClientCertificate[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "client-certificate" element
         */
        public com.bea.x2003.x03.wli.tpm.ClientCertificateDocument.ClientCertificate getClientCertificateArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.ClientCertificateDocument.ClientCertificate target = null;
                target = (com.bea.x2003.x03.wli.tpm.ClientCertificateDocument.ClientCertificate)get_store().find_element_user(CLIENTCERTIFICATE$4, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "client-certificate" element
         */
        public int sizeOfClientCertificateArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(CLIENTCERTIFICATE$4);
            }
        }
        
        /**
         * Sets array of all "client-certificate" element
         */
        public void setClientCertificateArray(com.bea.x2003.x03.wli.tpm.ClientCertificateDocument.ClientCertificate[] clientCertificateArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(clientCertificateArray, CLIENTCERTIFICATE$4);
            }
        }
        
        /**
         * Sets ith "client-certificate" element
         */
        public void setClientCertificateArray(int i, com.bea.x2003.x03.wli.tpm.ClientCertificateDocument.ClientCertificate clientCertificate)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.ClientCertificateDocument.ClientCertificate target = null;
                target = (com.bea.x2003.x03.wli.tpm.ClientCertificateDocument.ClientCertificate)get_store().find_element_user(CLIENTCERTIFICATE$4, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.set(clientCertificate);
            }
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "client-certificate" element
         */
        public com.bea.x2003.x03.wli.tpm.ClientCertificateDocument.ClientCertificate insertNewClientCertificate(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.ClientCertificateDocument.ClientCertificate target = null;
                target = (com.bea.x2003.x03.wli.tpm.ClientCertificateDocument.ClientCertificate)get_store().insert_element_user(CLIENTCERTIFICATE$4, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "client-certificate" element
         */
        public com.bea.x2003.x03.wli.tpm.ClientCertificateDocument.ClientCertificate addNewClientCertificate()
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.ClientCertificateDocument.ClientCertificate target = null;
                target = (com.bea.x2003.x03.wli.tpm.ClientCertificateDocument.ClientCertificate)get_store().add_element_user(CLIENTCERTIFICATE$4);
                return target;
            }
        }
        
        /**
         * Removes the ith "client-certificate" element
         */
        public void removeClientCertificate(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(CLIENTCERTIFICATE$4, i);
            }
        }
        
        /**
         * Gets a List of "server-certificate" elements
         */
        public java.util.List<com.bea.x2003.x03.wli.tpm.ServerCertificateDocument.ServerCertificate> getServerCertificateList()
        {
            final class ServerCertificateList extends java.util.AbstractList<com.bea.x2003.x03.wli.tpm.ServerCertificateDocument.ServerCertificate>
            {
                public com.bea.x2003.x03.wli.tpm.ServerCertificateDocument.ServerCertificate get(int i)
                    { return TradingPartnerImpl.this.getServerCertificateArray(i); }
                
                public com.bea.x2003.x03.wli.tpm.ServerCertificateDocument.ServerCertificate set(int i, com.bea.x2003.x03.wli.tpm.ServerCertificateDocument.ServerCertificate o)
                {
                    com.bea.x2003.x03.wli.tpm.ServerCertificateDocument.ServerCertificate old = TradingPartnerImpl.this.getServerCertificateArray(i);
                    TradingPartnerImpl.this.setServerCertificateArray(i, o);
                    return old;
                }
                
                public void add(int i, com.bea.x2003.x03.wli.tpm.ServerCertificateDocument.ServerCertificate o)
                    { TradingPartnerImpl.this.insertNewServerCertificate(i).set(o); }
                
                public com.bea.x2003.x03.wli.tpm.ServerCertificateDocument.ServerCertificate remove(int i)
                {
                    com.bea.x2003.x03.wli.tpm.ServerCertificateDocument.ServerCertificate old = TradingPartnerImpl.this.getServerCertificateArray(i);
                    TradingPartnerImpl.this.removeServerCertificate(i);
                    return old;
                }
                
                public int size()
                    { return TradingPartnerImpl.this.sizeOfServerCertificateArray(); }
                
            }
            
            synchronized (monitor())
            {
                check_orphaned();
                return new ServerCertificateList();
            }
        }
        
        /**
         * Gets array of all "server-certificate" elements
         */
        public com.bea.x2003.x03.wli.tpm.ServerCertificateDocument.ServerCertificate[] getServerCertificateArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List targetList = new java.util.ArrayList();
                get_store().find_all_element_users(SERVERCERTIFICATE$6, targetList);
                com.bea.x2003.x03.wli.tpm.ServerCertificateDocument.ServerCertificate[] result = new com.bea.x2003.x03.wli.tpm.ServerCertificateDocument.ServerCertificate[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "server-certificate" element
         */
        public com.bea.x2003.x03.wli.tpm.ServerCertificateDocument.ServerCertificate getServerCertificateArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.ServerCertificateDocument.ServerCertificate target = null;
                target = (com.bea.x2003.x03.wli.tpm.ServerCertificateDocument.ServerCertificate)get_store().find_element_user(SERVERCERTIFICATE$6, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "server-certificate" element
         */
        public int sizeOfServerCertificateArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(SERVERCERTIFICATE$6);
            }
        }
        
        /**
         * Sets array of all "server-certificate" element
         */
        public void setServerCertificateArray(com.bea.x2003.x03.wli.tpm.ServerCertificateDocument.ServerCertificate[] serverCertificateArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(serverCertificateArray, SERVERCERTIFICATE$6);
            }
        }
        
        /**
         * Sets ith "server-certificate" element
         */
        public void setServerCertificateArray(int i, com.bea.x2003.x03.wli.tpm.ServerCertificateDocument.ServerCertificate serverCertificate)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.ServerCertificateDocument.ServerCertificate target = null;
                target = (com.bea.x2003.x03.wli.tpm.ServerCertificateDocument.ServerCertificate)get_store().find_element_user(SERVERCERTIFICATE$6, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.set(serverCertificate);
            }
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "server-certificate" element
         */
        public com.bea.x2003.x03.wli.tpm.ServerCertificateDocument.ServerCertificate insertNewServerCertificate(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.ServerCertificateDocument.ServerCertificate target = null;
                target = (com.bea.x2003.x03.wli.tpm.ServerCertificateDocument.ServerCertificate)get_store().insert_element_user(SERVERCERTIFICATE$6, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "server-certificate" element
         */
        public com.bea.x2003.x03.wli.tpm.ServerCertificateDocument.ServerCertificate addNewServerCertificate()
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.ServerCertificateDocument.ServerCertificate target = null;
                target = (com.bea.x2003.x03.wli.tpm.ServerCertificateDocument.ServerCertificate)get_store().add_element_user(SERVERCERTIFICATE$6);
                return target;
            }
        }
        
        /**
         * Removes the ith "server-certificate" element
         */
        public void removeServerCertificate(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(SERVERCERTIFICATE$6, i);
            }
        }
        
        /**
         * Gets a List of "encryption-certificate" elements
         */
        public java.util.List<com.bea.x2003.x03.wli.tpm.EncryptionCertificateDocument.EncryptionCertificate> getEncryptionCertificateList()
        {
            final class EncryptionCertificateList extends java.util.AbstractList<com.bea.x2003.x03.wli.tpm.EncryptionCertificateDocument.EncryptionCertificate>
            {
                public com.bea.x2003.x03.wli.tpm.EncryptionCertificateDocument.EncryptionCertificate get(int i)
                    { return TradingPartnerImpl.this.getEncryptionCertificateArray(i); }
                
                public com.bea.x2003.x03.wli.tpm.EncryptionCertificateDocument.EncryptionCertificate set(int i, com.bea.x2003.x03.wli.tpm.EncryptionCertificateDocument.EncryptionCertificate o)
                {
                    com.bea.x2003.x03.wli.tpm.EncryptionCertificateDocument.EncryptionCertificate old = TradingPartnerImpl.this.getEncryptionCertificateArray(i);
                    TradingPartnerImpl.this.setEncryptionCertificateArray(i, o);
                    return old;
                }
                
                public void add(int i, com.bea.x2003.x03.wli.tpm.EncryptionCertificateDocument.EncryptionCertificate o)
                    { TradingPartnerImpl.this.insertNewEncryptionCertificate(i).set(o); }
                
                public com.bea.x2003.x03.wli.tpm.EncryptionCertificateDocument.EncryptionCertificate remove(int i)
                {
                    com.bea.x2003.x03.wli.tpm.EncryptionCertificateDocument.EncryptionCertificate old = TradingPartnerImpl.this.getEncryptionCertificateArray(i);
                    TradingPartnerImpl.this.removeEncryptionCertificate(i);
                    return old;
                }
                
                public int size()
                    { return TradingPartnerImpl.this.sizeOfEncryptionCertificateArray(); }
                
            }
            
            synchronized (monitor())
            {
                check_orphaned();
                return new EncryptionCertificateList();
            }
        }
        
        /**
         * Gets array of all "encryption-certificate" elements
         */
        public com.bea.x2003.x03.wli.tpm.EncryptionCertificateDocument.EncryptionCertificate[] getEncryptionCertificateArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List targetList = new java.util.ArrayList();
                get_store().find_all_element_users(ENCRYPTIONCERTIFICATE$8, targetList);
                com.bea.x2003.x03.wli.tpm.EncryptionCertificateDocument.EncryptionCertificate[] result = new com.bea.x2003.x03.wli.tpm.EncryptionCertificateDocument.EncryptionCertificate[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "encryption-certificate" element
         */
        public com.bea.x2003.x03.wli.tpm.EncryptionCertificateDocument.EncryptionCertificate getEncryptionCertificateArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.EncryptionCertificateDocument.EncryptionCertificate target = null;
                target = (com.bea.x2003.x03.wli.tpm.EncryptionCertificateDocument.EncryptionCertificate)get_store().find_element_user(ENCRYPTIONCERTIFICATE$8, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "encryption-certificate" element
         */
        public int sizeOfEncryptionCertificateArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(ENCRYPTIONCERTIFICATE$8);
            }
        }
        
        /**
         * Sets array of all "encryption-certificate" element
         */
        public void setEncryptionCertificateArray(com.bea.x2003.x03.wli.tpm.EncryptionCertificateDocument.EncryptionCertificate[] encryptionCertificateArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(encryptionCertificateArray, ENCRYPTIONCERTIFICATE$8);
            }
        }
        
        /**
         * Sets ith "encryption-certificate" element
         */
        public void setEncryptionCertificateArray(int i, com.bea.x2003.x03.wli.tpm.EncryptionCertificateDocument.EncryptionCertificate encryptionCertificate)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.EncryptionCertificateDocument.EncryptionCertificate target = null;
                target = (com.bea.x2003.x03.wli.tpm.EncryptionCertificateDocument.EncryptionCertificate)get_store().find_element_user(ENCRYPTIONCERTIFICATE$8, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.set(encryptionCertificate);
            }
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "encryption-certificate" element
         */
        public com.bea.x2003.x03.wli.tpm.EncryptionCertificateDocument.EncryptionCertificate insertNewEncryptionCertificate(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.EncryptionCertificateDocument.EncryptionCertificate target = null;
                target = (com.bea.x2003.x03.wli.tpm.EncryptionCertificateDocument.EncryptionCertificate)get_store().insert_element_user(ENCRYPTIONCERTIFICATE$8, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "encryption-certificate" element
         */
        public com.bea.x2003.x03.wli.tpm.EncryptionCertificateDocument.EncryptionCertificate addNewEncryptionCertificate()
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.EncryptionCertificateDocument.EncryptionCertificate target = null;
                target = (com.bea.x2003.x03.wli.tpm.EncryptionCertificateDocument.EncryptionCertificate)get_store().add_element_user(ENCRYPTIONCERTIFICATE$8);
                return target;
            }
        }
        
        /**
         * Removes the ith "encryption-certificate" element
         */
        public void removeEncryptionCertificate(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(ENCRYPTIONCERTIFICATE$8, i);
            }
        }
        
        /**
         * Gets a List of "signature-certificate" elements
         */
        public java.util.List<com.bea.x2003.x03.wli.tpm.SignatureCertificateDocument.SignatureCertificate> getSignatureCertificateList()
        {
            final class SignatureCertificateList extends java.util.AbstractList<com.bea.x2003.x03.wli.tpm.SignatureCertificateDocument.SignatureCertificate>
            {
                public com.bea.x2003.x03.wli.tpm.SignatureCertificateDocument.SignatureCertificate get(int i)
                    { return TradingPartnerImpl.this.getSignatureCertificateArray(i); }
                
                public com.bea.x2003.x03.wli.tpm.SignatureCertificateDocument.SignatureCertificate set(int i, com.bea.x2003.x03.wli.tpm.SignatureCertificateDocument.SignatureCertificate o)
                {
                    com.bea.x2003.x03.wli.tpm.SignatureCertificateDocument.SignatureCertificate old = TradingPartnerImpl.this.getSignatureCertificateArray(i);
                    TradingPartnerImpl.this.setSignatureCertificateArray(i, o);
                    return old;
                }
                
                public void add(int i, com.bea.x2003.x03.wli.tpm.SignatureCertificateDocument.SignatureCertificate o)
                    { TradingPartnerImpl.this.insertNewSignatureCertificate(i).set(o); }
                
                public com.bea.x2003.x03.wli.tpm.SignatureCertificateDocument.SignatureCertificate remove(int i)
                {
                    com.bea.x2003.x03.wli.tpm.SignatureCertificateDocument.SignatureCertificate old = TradingPartnerImpl.this.getSignatureCertificateArray(i);
                    TradingPartnerImpl.this.removeSignatureCertificate(i);
                    return old;
                }
                
                public int size()
                    { return TradingPartnerImpl.this.sizeOfSignatureCertificateArray(); }
                
            }
            
            synchronized (monitor())
            {
                check_orphaned();
                return new SignatureCertificateList();
            }
        }
        
        /**
         * Gets array of all "signature-certificate" elements
         */
        public com.bea.x2003.x03.wli.tpm.SignatureCertificateDocument.SignatureCertificate[] getSignatureCertificateArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List targetList = new java.util.ArrayList();
                get_store().find_all_element_users(SIGNATURECERTIFICATE$10, targetList);
                com.bea.x2003.x03.wli.tpm.SignatureCertificateDocument.SignatureCertificate[] result = new com.bea.x2003.x03.wli.tpm.SignatureCertificateDocument.SignatureCertificate[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "signature-certificate" element
         */
        public com.bea.x2003.x03.wli.tpm.SignatureCertificateDocument.SignatureCertificate getSignatureCertificateArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.SignatureCertificateDocument.SignatureCertificate target = null;
                target = (com.bea.x2003.x03.wli.tpm.SignatureCertificateDocument.SignatureCertificate)get_store().find_element_user(SIGNATURECERTIFICATE$10, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "signature-certificate" element
         */
        public int sizeOfSignatureCertificateArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(SIGNATURECERTIFICATE$10);
            }
        }
        
        /**
         * Sets array of all "signature-certificate" element
         */
        public void setSignatureCertificateArray(com.bea.x2003.x03.wli.tpm.SignatureCertificateDocument.SignatureCertificate[] signatureCertificateArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(signatureCertificateArray, SIGNATURECERTIFICATE$10);
            }
        }
        
        /**
         * Sets ith "signature-certificate" element
         */
        public void setSignatureCertificateArray(int i, com.bea.x2003.x03.wli.tpm.SignatureCertificateDocument.SignatureCertificate signatureCertificate)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.SignatureCertificateDocument.SignatureCertificate target = null;
                target = (com.bea.x2003.x03.wli.tpm.SignatureCertificateDocument.SignatureCertificate)get_store().find_element_user(SIGNATURECERTIFICATE$10, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.set(signatureCertificate);
            }
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "signature-certificate" element
         */
        public com.bea.x2003.x03.wli.tpm.SignatureCertificateDocument.SignatureCertificate insertNewSignatureCertificate(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.SignatureCertificateDocument.SignatureCertificate target = null;
                target = (com.bea.x2003.x03.wli.tpm.SignatureCertificateDocument.SignatureCertificate)get_store().insert_element_user(SIGNATURECERTIFICATE$10, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "signature-certificate" element
         */
        public com.bea.x2003.x03.wli.tpm.SignatureCertificateDocument.SignatureCertificate addNewSignatureCertificate()
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.SignatureCertificateDocument.SignatureCertificate target = null;
                target = (com.bea.x2003.x03.wli.tpm.SignatureCertificateDocument.SignatureCertificate)get_store().add_element_user(SIGNATURECERTIFICATE$10);
                return target;
            }
        }
        
        /**
         * Removes the ith "signature-certificate" element
         */
        public void removeSignatureCertificate(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(SIGNATURECERTIFICATE$10, i);
            }
        }
        
        /**
         * Gets a List of "ebxml-binding" elements
         */
        public java.util.List<com.bea.x2003.x03.wli.tpm.EbxmlBindingDocument.EbxmlBinding> getEbxmlBindingList()
        {
            final class EbxmlBindingList extends java.util.AbstractList<com.bea.x2003.x03.wli.tpm.EbxmlBindingDocument.EbxmlBinding>
            {
                public com.bea.x2003.x03.wli.tpm.EbxmlBindingDocument.EbxmlBinding get(int i)
                    { return TradingPartnerImpl.this.getEbxmlBindingArray(i); }
                
                public com.bea.x2003.x03.wli.tpm.EbxmlBindingDocument.EbxmlBinding set(int i, com.bea.x2003.x03.wli.tpm.EbxmlBindingDocument.EbxmlBinding o)
                {
                    com.bea.x2003.x03.wli.tpm.EbxmlBindingDocument.EbxmlBinding old = TradingPartnerImpl.this.getEbxmlBindingArray(i);
                    TradingPartnerImpl.this.setEbxmlBindingArray(i, o);
                    return old;
                }
                
                public void add(int i, com.bea.x2003.x03.wli.tpm.EbxmlBindingDocument.EbxmlBinding o)
                    { TradingPartnerImpl.this.insertNewEbxmlBinding(i).set(o); }
                
                public com.bea.x2003.x03.wli.tpm.EbxmlBindingDocument.EbxmlBinding remove(int i)
                {
                    com.bea.x2003.x03.wli.tpm.EbxmlBindingDocument.EbxmlBinding old = TradingPartnerImpl.this.getEbxmlBindingArray(i);
                    TradingPartnerImpl.this.removeEbxmlBinding(i);
                    return old;
                }
                
                public int size()
                    { return TradingPartnerImpl.this.sizeOfEbxmlBindingArray(); }
                
            }
            
            synchronized (monitor())
            {
                check_orphaned();
                return new EbxmlBindingList();
            }
        }
        
        /**
         * Gets array of all "ebxml-binding" elements
         */
        public com.bea.x2003.x03.wli.tpm.EbxmlBindingDocument.EbxmlBinding[] getEbxmlBindingArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List targetList = new java.util.ArrayList();
                get_store().find_all_element_users(EBXMLBINDING$12, targetList);
                com.bea.x2003.x03.wli.tpm.EbxmlBindingDocument.EbxmlBinding[] result = new com.bea.x2003.x03.wli.tpm.EbxmlBindingDocument.EbxmlBinding[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "ebxml-binding" element
         */
        public com.bea.x2003.x03.wli.tpm.EbxmlBindingDocument.EbxmlBinding getEbxmlBindingArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.EbxmlBindingDocument.EbxmlBinding target = null;
                target = (com.bea.x2003.x03.wli.tpm.EbxmlBindingDocument.EbxmlBinding)get_store().find_element_user(EBXMLBINDING$12, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "ebxml-binding" element
         */
        public int sizeOfEbxmlBindingArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(EBXMLBINDING$12);
            }
        }
        
        /**
         * Sets array of all "ebxml-binding" element
         */
        public void setEbxmlBindingArray(com.bea.x2003.x03.wli.tpm.EbxmlBindingDocument.EbxmlBinding[] ebxmlBindingArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(ebxmlBindingArray, EBXMLBINDING$12);
            }
        }
        
        /**
         * Sets ith "ebxml-binding" element
         */
        public void setEbxmlBindingArray(int i, com.bea.x2003.x03.wli.tpm.EbxmlBindingDocument.EbxmlBinding ebxmlBinding)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.EbxmlBindingDocument.EbxmlBinding target = null;
                target = (com.bea.x2003.x03.wli.tpm.EbxmlBindingDocument.EbxmlBinding)get_store().find_element_user(EBXMLBINDING$12, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.set(ebxmlBinding);
            }
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "ebxml-binding" element
         */
        public com.bea.x2003.x03.wli.tpm.EbxmlBindingDocument.EbxmlBinding insertNewEbxmlBinding(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.EbxmlBindingDocument.EbxmlBinding target = null;
                target = (com.bea.x2003.x03.wli.tpm.EbxmlBindingDocument.EbxmlBinding)get_store().insert_element_user(EBXMLBINDING$12, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "ebxml-binding" element
         */
        public com.bea.x2003.x03.wli.tpm.EbxmlBindingDocument.EbxmlBinding addNewEbxmlBinding()
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.EbxmlBindingDocument.EbxmlBinding target = null;
                target = (com.bea.x2003.x03.wli.tpm.EbxmlBindingDocument.EbxmlBinding)get_store().add_element_user(EBXMLBINDING$12);
                return target;
            }
        }
        
        /**
         * Removes the ith "ebxml-binding" element
         */
        public void removeEbxmlBinding(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(EBXMLBINDING$12, i);
            }
        }
        
        /**
         * Gets a List of "rosettanet-binding" elements
         */
        public java.util.List<com.bea.x2003.x03.wli.tpm.RosettanetBindingDocument.RosettanetBinding> getRosettanetBindingList()
        {
            final class RosettanetBindingList extends java.util.AbstractList<com.bea.x2003.x03.wli.tpm.RosettanetBindingDocument.RosettanetBinding>
            {
                public com.bea.x2003.x03.wli.tpm.RosettanetBindingDocument.RosettanetBinding get(int i)
                    { return TradingPartnerImpl.this.getRosettanetBindingArray(i); }
                
                public com.bea.x2003.x03.wli.tpm.RosettanetBindingDocument.RosettanetBinding set(int i, com.bea.x2003.x03.wli.tpm.RosettanetBindingDocument.RosettanetBinding o)
                {
                    com.bea.x2003.x03.wli.tpm.RosettanetBindingDocument.RosettanetBinding old = TradingPartnerImpl.this.getRosettanetBindingArray(i);
                    TradingPartnerImpl.this.setRosettanetBindingArray(i, o);
                    return old;
                }
                
                public void add(int i, com.bea.x2003.x03.wli.tpm.RosettanetBindingDocument.RosettanetBinding o)
                    { TradingPartnerImpl.this.insertNewRosettanetBinding(i).set(o); }
                
                public com.bea.x2003.x03.wli.tpm.RosettanetBindingDocument.RosettanetBinding remove(int i)
                {
                    com.bea.x2003.x03.wli.tpm.RosettanetBindingDocument.RosettanetBinding old = TradingPartnerImpl.this.getRosettanetBindingArray(i);
                    TradingPartnerImpl.this.removeRosettanetBinding(i);
                    return old;
                }
                
                public int size()
                    { return TradingPartnerImpl.this.sizeOfRosettanetBindingArray(); }
                
            }
            
            synchronized (monitor())
            {
                check_orphaned();
                return new RosettanetBindingList();
            }
        }
        
        /**
         * Gets array of all "rosettanet-binding" elements
         */
        public com.bea.x2003.x03.wli.tpm.RosettanetBindingDocument.RosettanetBinding[] getRosettanetBindingArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List targetList = new java.util.ArrayList();
                get_store().find_all_element_users(ROSETTANETBINDING$14, targetList);
                com.bea.x2003.x03.wli.tpm.RosettanetBindingDocument.RosettanetBinding[] result = new com.bea.x2003.x03.wli.tpm.RosettanetBindingDocument.RosettanetBinding[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "rosettanet-binding" element
         */
        public com.bea.x2003.x03.wli.tpm.RosettanetBindingDocument.RosettanetBinding getRosettanetBindingArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.RosettanetBindingDocument.RosettanetBinding target = null;
                target = (com.bea.x2003.x03.wli.tpm.RosettanetBindingDocument.RosettanetBinding)get_store().find_element_user(ROSETTANETBINDING$14, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "rosettanet-binding" element
         */
        public int sizeOfRosettanetBindingArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(ROSETTANETBINDING$14);
            }
        }
        
        /**
         * Sets array of all "rosettanet-binding" element
         */
        public void setRosettanetBindingArray(com.bea.x2003.x03.wli.tpm.RosettanetBindingDocument.RosettanetBinding[] rosettanetBindingArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(rosettanetBindingArray, ROSETTANETBINDING$14);
            }
        }
        
        /**
         * Sets ith "rosettanet-binding" element
         */
        public void setRosettanetBindingArray(int i, com.bea.x2003.x03.wli.tpm.RosettanetBindingDocument.RosettanetBinding rosettanetBinding)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.RosettanetBindingDocument.RosettanetBinding target = null;
                target = (com.bea.x2003.x03.wli.tpm.RosettanetBindingDocument.RosettanetBinding)get_store().find_element_user(ROSETTANETBINDING$14, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.set(rosettanetBinding);
            }
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "rosettanet-binding" element
         */
        public com.bea.x2003.x03.wli.tpm.RosettanetBindingDocument.RosettanetBinding insertNewRosettanetBinding(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.RosettanetBindingDocument.RosettanetBinding target = null;
                target = (com.bea.x2003.x03.wli.tpm.RosettanetBindingDocument.RosettanetBinding)get_store().insert_element_user(ROSETTANETBINDING$14, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "rosettanet-binding" element
         */
        public com.bea.x2003.x03.wli.tpm.RosettanetBindingDocument.RosettanetBinding addNewRosettanetBinding()
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.RosettanetBindingDocument.RosettanetBinding target = null;
                target = (com.bea.x2003.x03.wli.tpm.RosettanetBindingDocument.RosettanetBinding)get_store().add_element_user(ROSETTANETBINDING$14);
                return target;
            }
        }
        
        /**
         * Removes the ith "rosettanet-binding" element
         */
        public void removeRosettanetBinding(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(ROSETTANETBINDING$14, i);
            }
        }
        
        /**
         * Gets a List of "web-service-binding" elements
         */
        public java.util.List<com.bea.x2003.x03.wli.tpm.WebServiceBindingDocument.WebServiceBinding> getWebServiceBindingList()
        {
            final class WebServiceBindingList extends java.util.AbstractList<com.bea.x2003.x03.wli.tpm.WebServiceBindingDocument.WebServiceBinding>
            {
                public com.bea.x2003.x03.wli.tpm.WebServiceBindingDocument.WebServiceBinding get(int i)
                    { return TradingPartnerImpl.this.getWebServiceBindingArray(i); }
                
                public com.bea.x2003.x03.wli.tpm.WebServiceBindingDocument.WebServiceBinding set(int i, com.bea.x2003.x03.wli.tpm.WebServiceBindingDocument.WebServiceBinding o)
                {
                    com.bea.x2003.x03.wli.tpm.WebServiceBindingDocument.WebServiceBinding old = TradingPartnerImpl.this.getWebServiceBindingArray(i);
                    TradingPartnerImpl.this.setWebServiceBindingArray(i, o);
                    return old;
                }
                
                public void add(int i, com.bea.x2003.x03.wli.tpm.WebServiceBindingDocument.WebServiceBinding o)
                    { TradingPartnerImpl.this.insertNewWebServiceBinding(i).set(o); }
                
                public com.bea.x2003.x03.wli.tpm.WebServiceBindingDocument.WebServiceBinding remove(int i)
                {
                    com.bea.x2003.x03.wli.tpm.WebServiceBindingDocument.WebServiceBinding old = TradingPartnerImpl.this.getWebServiceBindingArray(i);
                    TradingPartnerImpl.this.removeWebServiceBinding(i);
                    return old;
                }
                
                public int size()
                    { return TradingPartnerImpl.this.sizeOfWebServiceBindingArray(); }
                
            }
            
            synchronized (monitor())
            {
                check_orphaned();
                return new WebServiceBindingList();
            }
        }
        
        /**
         * Gets array of all "web-service-binding" elements
         */
        public com.bea.x2003.x03.wli.tpm.WebServiceBindingDocument.WebServiceBinding[] getWebServiceBindingArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List targetList = new java.util.ArrayList();
                get_store().find_all_element_users(WEBSERVICEBINDING$16, targetList);
                com.bea.x2003.x03.wli.tpm.WebServiceBindingDocument.WebServiceBinding[] result = new com.bea.x2003.x03.wli.tpm.WebServiceBindingDocument.WebServiceBinding[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "web-service-binding" element
         */
        public com.bea.x2003.x03.wli.tpm.WebServiceBindingDocument.WebServiceBinding getWebServiceBindingArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.WebServiceBindingDocument.WebServiceBinding target = null;
                target = (com.bea.x2003.x03.wli.tpm.WebServiceBindingDocument.WebServiceBinding)get_store().find_element_user(WEBSERVICEBINDING$16, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "web-service-binding" element
         */
        public int sizeOfWebServiceBindingArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(WEBSERVICEBINDING$16);
            }
        }
        
        /**
         * Sets array of all "web-service-binding" element
         */
        public void setWebServiceBindingArray(com.bea.x2003.x03.wli.tpm.WebServiceBindingDocument.WebServiceBinding[] webServiceBindingArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(webServiceBindingArray, WEBSERVICEBINDING$16);
            }
        }
        
        /**
         * Sets ith "web-service-binding" element
         */
        public void setWebServiceBindingArray(int i, com.bea.x2003.x03.wli.tpm.WebServiceBindingDocument.WebServiceBinding webServiceBinding)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.WebServiceBindingDocument.WebServiceBinding target = null;
                target = (com.bea.x2003.x03.wli.tpm.WebServiceBindingDocument.WebServiceBinding)get_store().find_element_user(WEBSERVICEBINDING$16, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.set(webServiceBinding);
            }
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "web-service-binding" element
         */
        public com.bea.x2003.x03.wli.tpm.WebServiceBindingDocument.WebServiceBinding insertNewWebServiceBinding(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.WebServiceBindingDocument.WebServiceBinding target = null;
                target = (com.bea.x2003.x03.wli.tpm.WebServiceBindingDocument.WebServiceBinding)get_store().insert_element_user(WEBSERVICEBINDING$16, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "web-service-binding" element
         */
        public com.bea.x2003.x03.wli.tpm.WebServiceBindingDocument.WebServiceBinding addNewWebServiceBinding()
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.WebServiceBindingDocument.WebServiceBinding target = null;
                target = (com.bea.x2003.x03.wli.tpm.WebServiceBindingDocument.WebServiceBinding)get_store().add_element_user(WEBSERVICEBINDING$16);
                return target;
            }
        }
        
        /**
         * Removes the ith "web-service-binding" element
         */
        public void removeWebServiceBinding(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(WEBSERVICEBINDING$16, i);
            }
        }
        
        /**
         * Gets the "name" attribute
         */
        public java.lang.String getName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$18);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "name" attribute
         */
        public org.apache.xmlbeans.XmlString xgetName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$18);
                return target;
            }
        }
        
        /**
         * Sets the "name" attribute
         */
        public void setName(java.lang.String name)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$18);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$18);
                }
                target.setStringValue(name);
            }
        }
        
        /**
         * Sets (as xml) the "name" attribute
         */
        public void xsetName(org.apache.xmlbeans.XmlString name)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$18);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(NAME$18);
                }
                target.set(name);
            }
        }
        
        /**
         * Gets the "description" attribute
         */
        public java.lang.String getDescription()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DESCRIPTION$20);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "description" attribute
         */
        public org.apache.xmlbeans.XmlString xgetDescription()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DESCRIPTION$20);
                return target;
            }
        }
        
        /**
         * True if has "description" attribute
         */
        public boolean isSetDescription()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(DESCRIPTION$20) != null;
            }
        }
        
        /**
         * Sets the "description" attribute
         */
        public void setDescription(java.lang.String description)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DESCRIPTION$20);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DESCRIPTION$20);
                }
                target.setStringValue(description);
            }
        }
        
        /**
         * Sets (as xml) the "description" attribute
         */
        public void xsetDescription(org.apache.xmlbeans.XmlString description)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DESCRIPTION$20);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(DESCRIPTION$20);
                }
                target.set(description);
            }
        }
        
        /**
         * Unsets the "description" attribute
         */
        public void unsetDescription()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(DESCRIPTION$20);
            }
        }
        
        /**
         * Gets the "notes" attribute
         */
        public java.lang.String getNotes()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NOTES$22);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "notes" attribute
         */
        public org.apache.xmlbeans.XmlString xgetNotes()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NOTES$22);
                return target;
            }
        }
        
        /**
         * True if has "notes" attribute
         */
        public boolean isSetNotes()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(NOTES$22) != null;
            }
        }
        
        /**
         * Sets the "notes" attribute
         */
        public void setNotes(java.lang.String notes)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NOTES$22);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NOTES$22);
                }
                target.setStringValue(notes);
            }
        }
        
        /**
         * Sets (as xml) the "notes" attribute
         */
        public void xsetNotes(org.apache.xmlbeans.XmlString notes)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NOTES$22);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(NOTES$22);
                }
                target.set(notes);
            }
        }
        
        /**
         * Unsets the "notes" attribute
         */
        public void unsetNotes()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(NOTES$22);
            }
        }
        
        /**
         * Gets the "status" attribute
         */
        public com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner.Status.Enum getStatus()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STATUS$24);
                if (target == null)
                {
                    return null;
                }
                return (com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner.Status.Enum)target.getEnumValue();
            }
        }
        
        /**
         * Gets (as xml) the "status" attribute
         */
        public com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner.Status xgetStatus()
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner.Status target = null;
                target = (com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner.Status)get_store().find_attribute_user(STATUS$24);
                return target;
            }
        }
        
        /**
         * True if has "status" attribute
         */
        public boolean isSetStatus()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(STATUS$24) != null;
            }
        }
        
        /**
         * Sets the "status" attribute
         */
        public void setStatus(com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner.Status.Enum status)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STATUS$24);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(STATUS$24);
                }
                target.setEnumValue(status);
            }
        }
        
        /**
         * Sets (as xml) the "status" attribute
         */
        public void xsetStatus(com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner.Status status)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner.Status target = null;
                target = (com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner.Status)get_store().find_attribute_user(STATUS$24);
                if (target == null)
                {
                    target = (com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner.Status)get_store().add_attribute_user(STATUS$24);
                }
                target.set(status);
            }
        }
        
        /**
         * Unsets the "status" attribute
         */
        public void unsetStatus()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(STATUS$24);
            }
        }
        
        /**
         * Gets the "type" attribute
         */
        public com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner.Type.Enum getType()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$26);
                if (target == null)
                {
                    return null;
                }
                return (com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner.Type.Enum)target.getEnumValue();
            }
        }
        
        /**
         * Gets (as xml) the "type" attribute
         */
        public com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner.Type xgetType()
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner.Type target = null;
                target = (com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner.Type)get_store().find_attribute_user(TYPE$26);
                return target;
            }
        }
        
        /**
         * True if has "type" attribute
         */
        public boolean isSetType()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(TYPE$26) != null;
            }
        }
        
        /**
         * Sets the "type" attribute
         */
        public void setType(com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner.Type.Enum type)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$26);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TYPE$26);
                }
                target.setEnumValue(type);
            }
        }
        
        /**
         * Sets (as xml) the "type" attribute
         */
        public void xsetType(com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner.Type type)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner.Type target = null;
                target = (com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner.Type)get_store().find_attribute_user(TYPE$26);
                if (target == null)
                {
                    target = (com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner.Type)get_store().add_attribute_user(TYPE$26);
                }
                target.set(type);
            }
        }
        
        /**
         * Unsets the "type" attribute
         */
        public void unsetType()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(TYPE$26);
            }
        }
        
        /**
         * Gets the "is-default" attribute
         */
        public boolean getIsDefault()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ISDEFAULT$28);
                if (target == null)
                {
                    return false;
                }
                return target.getBooleanValue();
            }
        }
        
        /**
         * Gets (as xml) the "is-default" attribute
         */
        public org.apache.xmlbeans.XmlBoolean xgetIsDefault()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlBoolean target = null;
                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(ISDEFAULT$28);
                return target;
            }
        }
        
        /**
         * True if has "is-default" attribute
         */
        public boolean isSetIsDefault()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(ISDEFAULT$28) != null;
            }
        }
        
        /**
         * Sets the "is-default" attribute
         */
        public void setIsDefault(boolean isDefault)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ISDEFAULT$28);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ISDEFAULT$28);
                }
                target.setBooleanValue(isDefault);
            }
        }
        
        /**
         * Sets (as xml) the "is-default" attribute
         */
        public void xsetIsDefault(org.apache.xmlbeans.XmlBoolean isDefault)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlBoolean target = null;
                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(ISDEFAULT$28);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(ISDEFAULT$28);
                }
                target.set(isDefault);
            }
        }
        
        /**
         * Unsets the "is-default" attribute
         */
        public void unsetIsDefault()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(ISDEFAULT$28);
            }
        }
        
        /**
         * Gets the "business-id-type" attribute
         */
        public java.lang.String getBusinessIdType()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(BUSINESSIDTYPE$30);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "business-id-type" attribute
         */
        public org.apache.xmlbeans.XmlString xgetBusinessIdType()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(BUSINESSIDTYPE$30);
                return target;
            }
        }
        
        /**
         * True if has "business-id-type" attribute
         */
        public boolean isSetBusinessIdType()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(BUSINESSIDTYPE$30) != null;
            }
        }
        
        /**
         * Sets the "business-id-type" attribute
         */
        public void setBusinessIdType(java.lang.String businessIdType)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(BUSINESSIDTYPE$30);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(BUSINESSIDTYPE$30);
                }
                target.setStringValue(businessIdType);
            }
        }
        
        /**
         * Sets (as xml) the "business-id-type" attribute
         */
        public void xsetBusinessIdType(org.apache.xmlbeans.XmlString businessIdType)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(BUSINESSIDTYPE$30);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(BUSINESSIDTYPE$30);
                }
                target.set(businessIdType);
            }
        }
        
        /**
         * Unsets the "business-id-type" attribute
         */
        public void unsetBusinessIdType()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(BUSINESSIDTYPE$30);
            }
        }
        
        /**
         * Gets the "business-id" attribute
         */
        public java.lang.String getBusinessId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(BUSINESSID$32);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "business-id" attribute
         */
        public org.apache.xmlbeans.XmlString xgetBusinessId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(BUSINESSID$32);
                return target;
            }
        }
        
        /**
         * True if has "business-id" attribute
         */
        public boolean isSetBusinessId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(BUSINESSID$32) != null;
            }
        }
        
        /**
         * Sets the "business-id" attribute
         */
        public void setBusinessId(java.lang.String businessId)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(BUSINESSID$32);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(BUSINESSID$32);
                }
                target.setStringValue(businessId);
            }
        }
        
        /**
         * Sets (as xml) the "business-id" attribute
         */
        public void xsetBusinessId(org.apache.xmlbeans.XmlString businessId)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(BUSINESSID$32);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(BUSINESSID$32);
                }
                target.set(businessId);
            }
        }
        
        /**
         * Unsets the "business-id" attribute
         */
        public void unsetBusinessId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(BUSINESSID$32);
            }
        }
        
        /**
         * Gets the "email" attribute
         */
        public java.lang.String getEmail()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(EMAIL$34);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "email" attribute
         */
        public org.apache.xmlbeans.XmlString xgetEmail()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(EMAIL$34);
                return target;
            }
        }
        
        /**
         * True if has "email" attribute
         */
        public boolean isSetEmail()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(EMAIL$34) != null;
            }
        }
        
        /**
         * Sets the "email" attribute
         */
        public void setEmail(java.lang.String email)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(EMAIL$34);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(EMAIL$34);
                }
                target.setStringValue(email);
            }
        }
        
        /**
         * Sets (as xml) the "email" attribute
         */
        public void xsetEmail(org.apache.xmlbeans.XmlString email)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(EMAIL$34);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(EMAIL$34);
                }
                target.set(email);
            }
        }
        
        /**
         * Unsets the "email" attribute
         */
        public void unsetEmail()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(EMAIL$34);
            }
        }
        
        /**
         * Gets the "phone" attribute
         */
        public java.lang.String getPhone()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PHONE$36);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "phone" attribute
         */
        public org.apache.xmlbeans.XmlString xgetPhone()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PHONE$36);
                return target;
            }
        }
        
        /**
         * True if has "phone" attribute
         */
        public boolean isSetPhone()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(PHONE$36) != null;
            }
        }
        
        /**
         * Sets the "phone" attribute
         */
        public void setPhone(java.lang.String phone)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PHONE$36);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PHONE$36);
                }
                target.setStringValue(phone);
            }
        }
        
        /**
         * Sets (as xml) the "phone" attribute
         */
        public void xsetPhone(org.apache.xmlbeans.XmlString phone)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PHONE$36);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(PHONE$36);
                }
                target.set(phone);
            }
        }
        
        /**
         * Unsets the "phone" attribute
         */
        public void unsetPhone()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(PHONE$36);
            }
        }
        
        /**
         * Gets the "fax" attribute
         */
        public java.lang.String getFax()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FAX$38);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "fax" attribute
         */
        public org.apache.xmlbeans.XmlString xgetFax()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(FAX$38);
                return target;
            }
        }
        
        /**
         * True if has "fax" attribute
         */
        public boolean isSetFax()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(FAX$38) != null;
            }
        }
        
        /**
         * Sets the "fax" attribute
         */
        public void setFax(java.lang.String fax)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FAX$38);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(FAX$38);
                }
                target.setStringValue(fax);
            }
        }
        
        /**
         * Sets (as xml) the "fax" attribute
         */
        public void xsetFax(org.apache.xmlbeans.XmlString fax)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(FAX$38);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(FAX$38);
                }
                target.set(fax);
            }
        }
        
        /**
         * Unsets the "fax" attribute
         */
        public void unsetFax()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(FAX$38);
            }
        }
        
        /**
         * Gets the "username" attribute
         */
        public java.lang.String getUsername()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(USERNAME$40);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "username" attribute
         */
        public org.apache.xmlbeans.XmlString xgetUsername()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(USERNAME$40);
                return target;
            }
        }
        
        /**
         * True if has "username" attribute
         */
        public boolean isSetUsername()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(USERNAME$40) != null;
            }
        }
        
        /**
         * Sets the "username" attribute
         */
        public void setUsername(java.lang.String username)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(USERNAME$40);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(USERNAME$40);
                }
                target.setStringValue(username);
            }
        }
        
        /**
         * Sets (as xml) the "username" attribute
         */
        public void xsetUsername(org.apache.xmlbeans.XmlString username)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(USERNAME$40);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(USERNAME$40);
                }
                target.set(username);
            }
        }
        
        /**
         * Unsets the "username" attribute
         */
        public void unsetUsername()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(USERNAME$40);
            }
        }
        /**
         * An XML status(@).
         *
         * This is an atomic type that is a restriction of com.bea.x2003.x03.wli.tpm.TradingPartnerDocument$TradingPartner$Status.
         */
        public static class StatusImpl extends org.apache.xmlbeans.impl.values.JavaStringEnumerationHolderEx implements com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner.Status
        {
            
            public StatusImpl(org.apache.xmlbeans.SchemaType sType)
            {
                super(sType, false);
            }
            
            protected StatusImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
            {
                super(sType, b);
            }
        }
        /**
         * An XML type(@).
         *
         * This is an atomic type that is a restriction of com.bea.x2003.x03.wli.tpm.TradingPartnerDocument$TradingPartner$Type.
         */
        public static class TypeImpl extends org.apache.xmlbeans.impl.values.JavaStringEnumerationHolderEx implements com.bea.x2003.x03.wli.tpm.TradingPartnerDocument.TradingPartner.Type
        {
            
            public TypeImpl(org.apache.xmlbeans.SchemaType sType)
            {
                super(sType, false);
            }
            
            protected TypeImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
            {
                super(sType, b);
            }
        }
    }
}
