001    /*
002     * An XML document type.
003     * Localname: abstract-naming-entry
004     * Namespace: http://geronimo.apache.org/xml/ns/naming-1.2
005     * Java type: org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryDocument
006     *
007     * Automatically generated - do not modify.
008     */
009    package org.apache.geronimo.xbeans.geronimo.naming.impl;
010    /**
011     * A document containing one abstract-naming-entry(@http://geronimo.apache.org/xml/ns/naming-1.2) element.
012     *
013     * This is a complex type.
014     */
015    public class GerAbstractNamingEntryDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryDocument
016    {
017        
018        public GerAbstractNamingEntryDocumentImpl(org.apache.xmlbeans.SchemaType sType)
019        {
020            super(sType);
021        }
022        
023        private static final javax.xml.namespace.QName ABSTRACTNAMINGENTRY$0 = 
024            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "abstract-naming-entry");
025        private static final org.apache.xmlbeans.QNameSet ABSTRACTNAMINGENTRY$1 = org.apache.xmlbeans.QNameSet.forArray( new javax.xml.namespace.QName[] { 
026            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "gbean-ref"),
027            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "persistence-context-ref"),
028            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "persistence-unit-ref"),
029            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "abstract-naming-entry"),
030        });
031        
032        
033        /**
034         * Gets the "abstract-naming-entry" element
035         */
036        public org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType getAbstractNamingEntry()
037        {
038            synchronized (monitor())
039            {
040                check_orphaned();
041                org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType target = null;
042                target = (org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType)get_store().find_element_user(ABSTRACTNAMINGENTRY$1, 0);
043                if (target == null)
044                {
045                    return null;
046                }
047                return target;
048            }
049        }
050        
051        /**
052         * Sets the "abstract-naming-entry" element
053         */
054        public void setAbstractNamingEntry(org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType abstractNamingEntry)
055        {
056            synchronized (monitor())
057            {
058                check_orphaned();
059                org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType target = null;
060                target = (org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType)get_store().find_element_user(ABSTRACTNAMINGENTRY$1, 0);
061                if (target == null)
062                {
063                    target = (org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType)get_store().add_element_user(ABSTRACTNAMINGENTRY$0);
064                }
065                target.set(abstractNamingEntry);
066            }
067        }
068        
069        /**
070         * Appends and returns a new empty "abstract-naming-entry" element
071         */
072        public org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType addNewAbstractNamingEntry()
073        {
074            synchronized (monitor())
075            {
076                check_orphaned();
077                org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType target = null;
078                target = (org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType)get_store().add_element_user(ABSTRACTNAMINGENTRY$0);
079                return target;
080            }
081        }
082    }