/*
 * XML Type:  ServiceGroupModificationNotificationType
 * Namespace: http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd
 * Java type: org.activemq.ws.xmlbeans.servicegroup.ServiceGroupModificationNotificationType
 *
 * Automatically generated - do not modify.
 */
package org.activemq.ws.xmlbeans.servicegroup.impl;
/**
 * An XML ServiceGroupModificationNotificationType(@http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd).
 *
 * This is a complex type.
 */
public class ServiceGroupModificationNotificationTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.servicegroup.ServiceGroupModificationNotificationType
{
    
    public ServiceGroupModificationNotificationTypeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SERVICEGROUPENTRYEPR$0 = 
        new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd", "ServiceGroupEntryEPR");
    private static final javax.xml.namespace.QName MEMBERSERVICEEPR$2 = 
        new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd", "MemberServiceEPR");
    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 "ServiceGroupEntryEPR" element
     */
    public org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType getServiceGroupEntryEPR()
    {
        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(SERVICEGROUPENTRYEPR$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Tests for nil "ServiceGroupEntryEPR" element
     */
    public boolean isNilServiceGroupEntryEPR()
    {
        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(SERVICEGROUPENTRYEPR$0, 0);
            if (target == null) return false;
            return target.isNil();
        }
    }
    
    /**
     * Sets the "ServiceGroupEntryEPR" element
     */
    public void setServiceGroupEntryEPR(org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType serviceGroupEntryEPR)
    {
        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(SERVICEGROUPENTRYEPR$0, 0);
            if (target == null)
            {
                target = (org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType)get_store().add_element_user(SERVICEGROUPENTRYEPR$0);
            }
            target.set(serviceGroupEntryEPR);
        }
    }
    
    /**
     * Appends and returns a new empty "ServiceGroupEntryEPR" element
     */
    public org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType addNewServiceGroupEntryEPR()
    {
        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(SERVICEGROUPENTRYEPR$0);
            return target;
        }
    }
    
    /**
     * Nils the "ServiceGroupEntryEPR" element
     */
    public void setNilServiceGroupEntryEPR()
    {
        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(SERVICEGROUPENTRYEPR$0, 0);
            if (target == null)
            {
                target = (org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType)get_store().add_element_user(SERVICEGROUPENTRYEPR$0);
            }
            target.setNil();
        }
    }
    
    /**
     * Gets the "MemberServiceEPR" element
     */
    public org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType getMemberServiceEPR()
    {
        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(MEMBERSERVICEEPR$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "MemberServiceEPR" element
     */
    public void setMemberServiceEPR(org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType memberServiceEPR)
    {
        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(MEMBERSERVICEEPR$2, 0);
            if (target == null)
            {
                target = (org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType)get_store().add_element_user(MEMBERSERVICEEPR$2);
            }
            target.set(memberServiceEPR);
        }
    }
    
    /**
     * Appends and returns a new empty "MemberServiceEPR" element
     */
    public org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType addNewMemberServiceEPR()
    {
        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(MEMBERSERVICEEPR$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;
        }
    }
    
    /**
     * True if has "Content" element
     */
    public boolean isSetContent()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CONTENT$4) != 0;
        }
    }
    
    /**
     * 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;
        }
    }
    
    /**
     * Unsets the "Content" element
     */
    public void unsetContent()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CONTENT$4, 0);
        }
    }
}
