/*
 * An XML document type.
 * Localname: ServiceGroupEntryRP
 * Namespace: http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd
 * Java type: org.activemq.ws.xmlbeans.servicegroup.ServiceGroupEntryRPDocument
 *
 * Automatically generated - do not modify.
 */
package org.activemq.ws.xmlbeans.servicegroup.impl;
/**
 * A document containing one ServiceGroupEntryRP(@http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd) element.
 *
 * This is a complex type.
 */
public class ServiceGroupEntryRPDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.servicegroup.ServiceGroupEntryRPDocument
{
    
    public ServiceGroupEntryRPDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SERVICEGROUPENTRYRP$0 = 
        new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd", "ServiceGroupEntryRP");
    
    
    /**
     * Gets the "ServiceGroupEntryRP" element
     */
    public org.activemq.ws.xmlbeans.servicegroup.ServiceGroupEntryRPDocument.ServiceGroupEntryRP getServiceGroupEntryRP()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.servicegroup.ServiceGroupEntryRPDocument.ServiceGroupEntryRP target = null;
            target = (org.activemq.ws.xmlbeans.servicegroup.ServiceGroupEntryRPDocument.ServiceGroupEntryRP)get_store().find_element_user(SERVICEGROUPENTRYRP$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "ServiceGroupEntryRP" element
     */
    public void setServiceGroupEntryRP(org.activemq.ws.xmlbeans.servicegroup.ServiceGroupEntryRPDocument.ServiceGroupEntryRP serviceGroupEntryRP)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.servicegroup.ServiceGroupEntryRPDocument.ServiceGroupEntryRP target = null;
            target = (org.activemq.ws.xmlbeans.servicegroup.ServiceGroupEntryRPDocument.ServiceGroupEntryRP)get_store().find_element_user(SERVICEGROUPENTRYRP$0, 0);
            if (target == null)
            {
                target = (org.activemq.ws.xmlbeans.servicegroup.ServiceGroupEntryRPDocument.ServiceGroupEntryRP)get_store().add_element_user(SERVICEGROUPENTRYRP$0);
            }
            target.set(serviceGroupEntryRP);
        }
    }
    
    /**
     * Appends and returns a new empty "ServiceGroupEntryRP" element
     */
    public org.activemq.ws.xmlbeans.servicegroup.ServiceGroupEntryRPDocument.ServiceGroupEntryRP addNewServiceGroupEntryRP()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.servicegroup.ServiceGroupEntryRPDocument.ServiceGroupEntryRP target = null;
            target = (org.activemq.ws.xmlbeans.servicegroup.ServiceGroupEntryRPDocument.ServiceGroupEntryRP)get_store().add_element_user(SERVICEGROUPENTRYRP$0);
            return target;
        }
    }
    /**
     * An XML ServiceGroupEntryRP(@http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd).
     *
     * This is a complex type.
     */
    public static class ServiceGroupEntryRPImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.servicegroup.ServiceGroupEntryRPDocument.ServiceGroupEntryRP
    {
        
        public ServiceGroupEntryRPImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName SERVICEGROUPEPR$0 = 
            new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd", "ServiceGroupEPR");
        private static final javax.xml.namespace.QName MEMBEREPR$2 = 
            new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd", "MemberEPR");
        private static final javax.xml.namespace.QName CONTENT$4 = 
            new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd", "Content");
        
        
        /**
         * Gets the "ServiceGroupEPR" element
         */
        public org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType getServiceGroupEPR()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType target = null;
                target = (org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType)get_store().find_element_user(SERVICEGROUPEPR$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * Sets the "ServiceGroupEPR" element
         */
        public void setServiceGroupEPR(org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType serviceGroupEPR)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType target = null;
                target = (org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType)get_store().find_element_user(SERVICEGROUPEPR$0, 0);
                if (target == null)
                {
                    target = (org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType)get_store().add_element_user(SERVICEGROUPEPR$0);
                }
                target.set(serviceGroupEPR);
            }
        }
        
        /**
         * Appends and returns a new empty "ServiceGroupEPR" element
         */
        public org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType addNewServiceGroupEPR()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType target = null;
                target = (org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType)get_store().add_element_user(SERVICEGROUPEPR$0);
                return target;
            }
        }
        
        /**
         * Gets the "MemberEPR" element
         */
        public org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType getMemberEPR()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType target = null;
                target = (org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType)get_store().find_element_user(MEMBEREPR$2, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * Sets the "MemberEPR" element
         */
        public void setMemberEPR(org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType memberEPR)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType target = null;
                target = (org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType)get_store().find_element_user(MEMBEREPR$2, 0);
                if (target == null)
                {
                    target = (org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType)get_store().add_element_user(MEMBEREPR$2);
                }
                target.set(memberEPR);
            }
        }
        
        /**
         * Appends and returns a new empty "MemberEPR" element
         */
        public org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType addNewMemberEPR()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType target = null;
                target = (org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType)get_store().add_element_user(MEMBEREPR$2);
                return target;
            }
        }
        
        /**
         * Gets the "Content" element
         */
        public org.apache.xmlbeans.XmlObject getContent()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlObject target = null;
                target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(CONTENT$4, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * Sets the "Content" element
         */
        public void setContent(org.apache.xmlbeans.XmlObject content)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlObject target = null;
                target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(CONTENT$4, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(CONTENT$4);
                }
                target.set(content);
            }
        }
        
        /**
         * Appends and returns a new empty "Content" element
         */
        public org.apache.xmlbeans.XmlObject addNewContent()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlObject target = null;
                target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(CONTENT$4);
                return target;
            }
        }
    }
}
