001    /*
002     * XML Type:  dependencyType
003     * Namespace: http://geronimo.apache.org/xml/ns/deployment-1.2
004     * Java type: org.apache.geronimo.deployment.xbeans.DependencyType
005     *
006     * Automatically generated - do not modify.
007     */
008    package org.apache.geronimo.deployment.xbeans.impl;
009    /**
010     * An XML dependencyType(@http://geronimo.apache.org/xml/ns/deployment-1.2).
011     *
012     * This is a complex type.
013     */
014    public class DependencyTypeImpl extends org.apache.geronimo.deployment.xbeans.impl.ArtifactTypeImpl implements org.apache.geronimo.deployment.xbeans.DependencyType
015    {
016        
017        public DependencyTypeImpl(org.apache.xmlbeans.SchemaType sType)
018        {
019            super(sType);
020        }
021        
022        private static final javax.xml.namespace.QName IMPORT$0 = 
023            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/deployment-1.2", "import");
024        
025        
026        /**
027         * Gets the "import" element
028         */
029        public org.apache.geronimo.deployment.xbeans.ImportType.Enum getImport()
030        {
031            synchronized (monitor())
032            {
033                check_orphaned();
034                org.apache.xmlbeans.SimpleValue target = null;
035                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IMPORT$0, 0);
036                if (target == null)
037                {
038                    return null;
039                }
040                return (org.apache.geronimo.deployment.xbeans.ImportType.Enum)target.getEnumValue();
041            }
042        }
043        
044        /**
045         * Gets (as xml) the "import" element
046         */
047        public org.apache.geronimo.deployment.xbeans.ImportType xgetImport()
048        {
049            synchronized (monitor())
050            {
051                check_orphaned();
052                org.apache.geronimo.deployment.xbeans.ImportType target = null;
053                target = (org.apache.geronimo.deployment.xbeans.ImportType)get_store().find_element_user(IMPORT$0, 0);
054                return target;
055            }
056        }
057        
058        /**
059         * True if has "import" element
060         */
061        public boolean isSetImport()
062        {
063            synchronized (monitor())
064            {
065                check_orphaned();
066                return get_store().count_elements(IMPORT$0) != 0;
067            }
068        }
069        
070        /**
071         * Sets the "import" element
072         */
073        public void setImport(org.apache.geronimo.deployment.xbeans.ImportType.Enum ximport)
074        {
075            synchronized (monitor())
076            {
077                check_orphaned();
078                org.apache.xmlbeans.SimpleValue target = null;
079                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IMPORT$0, 0);
080                if (target == null)
081                {
082                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(IMPORT$0);
083                }
084                target.setEnumValue(ximport);
085            }
086        }
087        
088        /**
089         * Sets (as xml) the "import" element
090         */
091        public void xsetImport(org.apache.geronimo.deployment.xbeans.ImportType ximport)
092        {
093            synchronized (monitor())
094            {
095                check_orphaned();
096                org.apache.geronimo.deployment.xbeans.ImportType target = null;
097                target = (org.apache.geronimo.deployment.xbeans.ImportType)get_store().find_element_user(IMPORT$0, 0);
098                if (target == null)
099                {
100                    target = (org.apache.geronimo.deployment.xbeans.ImportType)get_store().add_element_user(IMPORT$0);
101                }
102                target.set(ximport);
103            }
104        }
105        
106        /**
107         * Unsets the "import" element
108         */
109        public void unsetImport()
110        {
111            synchronized (monitor())
112            {
113                check_orphaned();
114                get_store().remove_element(IMPORT$0, 0);
115            }
116        }
117    }