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