/*
 * An XML document type.
 * Localname: EntryAdditionNotification
 * Namespace: http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd
 * Java type: org.activemq.ws.xmlbeans.servicegroup.EntryAdditionNotificationDocument
 *
 * Automatically generated - do not modify.
 */
package org.activemq.ws.xmlbeans.servicegroup.impl;
/**
 * A document containing one EntryAdditionNotification(@http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd) element.
 *
 * This is a complex type.
 */
public class EntryAdditionNotificationDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.servicegroup.EntryAdditionNotificationDocument
{
    
    public EntryAdditionNotificationDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ENTRYADDITIONNOTIFICATION$0 = 
        new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd", "EntryAdditionNotification");
    
    
    /**
     * Gets the "EntryAdditionNotification" element
     */
    public org.activemq.ws.xmlbeans.servicegroup.ServiceGroupModificationNotificationType getEntryAdditionNotification()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.servicegroup.ServiceGroupModificationNotificationType target = null;
            target = (org.activemq.ws.xmlbeans.servicegroup.ServiceGroupModificationNotificationType)get_store().find_element_user(ENTRYADDITIONNOTIFICATION$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "EntryAdditionNotification" element
     */
    public void setEntryAdditionNotification(org.activemq.ws.xmlbeans.servicegroup.ServiceGroupModificationNotificationType entryAdditionNotification)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.servicegroup.ServiceGroupModificationNotificationType target = null;
            target = (org.activemq.ws.xmlbeans.servicegroup.ServiceGroupModificationNotificationType)get_store().find_element_user(ENTRYADDITIONNOTIFICATION$0, 0);
            if (target == null)
            {
                target = (org.activemq.ws.xmlbeans.servicegroup.ServiceGroupModificationNotificationType)get_store().add_element_user(ENTRYADDITIONNOTIFICATION$0);
            }
            target.set(entryAdditionNotification);
        }
    }
    
    /**
     * Appends and returns a new empty "EntryAdditionNotification" element
     */
    public org.activemq.ws.xmlbeans.servicegroup.ServiceGroupModificationNotificationType addNewEntryAdditionNotification()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.servicegroup.ServiceGroupModificationNotificationType target = null;
            target = (org.activemq.ws.xmlbeans.servicegroup.ServiceGroupModificationNotificationType)get_store().add_element_user(ENTRYADDITIONNOTIFICATION$0);
            return target;
        }
    }
}
