001    /*
002     * XML Type:  tDocumented
003     * Namespace: http://schemas.xmlsoap.org/wsdl/
004     * Java type: org.apache.geronimo.xbeans.wsdl.TDocumented
005     *
006     * Automatically generated - do not modify.
007     */
008    package org.apache.geronimo.xbeans.wsdl.impl;
009    /**
010     * An XML tDocumented(@http://schemas.xmlsoap.org/wsdl/).
011     *
012     * This is a complex type.
013     */
014    public class TDocumentedImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.xbeans.wsdl.TDocumented
015    {
016        
017        public TDocumentedImpl(org.apache.xmlbeans.SchemaType sType)
018        {
019            super(sType);
020        }
021        
022        private static final javax.xml.namespace.QName DOCUMENTATION$0 = 
023            new javax.xml.namespace.QName("http://schemas.xmlsoap.org/wsdl/", "documentation");
024        
025        
026        /**
027         * Gets the "documentation" element
028         */
029        public org.apache.geronimo.xbeans.wsdl.TDocumentation getDocumentation()
030        {
031            synchronized (monitor())
032            {
033                check_orphaned();
034                org.apache.geronimo.xbeans.wsdl.TDocumentation target = null;
035                target = (org.apache.geronimo.xbeans.wsdl.TDocumentation)get_store().find_element_user(DOCUMENTATION$0, 0);
036                if (target == null)
037                {
038                    return null;
039                }
040                return target;
041            }
042        }
043        
044        /**
045         * True if has "documentation" element
046         */
047        public boolean isSetDocumentation()
048        {
049            synchronized (monitor())
050            {
051                check_orphaned();
052                return get_store().count_elements(DOCUMENTATION$0) != 0;
053            }
054        }
055        
056        /**
057         * Sets the "documentation" element
058         */
059        public void setDocumentation(org.apache.geronimo.xbeans.wsdl.TDocumentation documentation)
060        {
061            synchronized (monitor())
062            {
063                check_orphaned();
064                org.apache.geronimo.xbeans.wsdl.TDocumentation target = null;
065                target = (org.apache.geronimo.xbeans.wsdl.TDocumentation)get_store().find_element_user(DOCUMENTATION$0, 0);
066                if (target == null)
067                {
068                    target = (org.apache.geronimo.xbeans.wsdl.TDocumentation)get_store().add_element_user(DOCUMENTATION$0);
069                }
070                target.set(documentation);
071            }
072        }
073        
074        /**
075         * Appends and returns a new empty "documentation" element
076         */
077        public org.apache.geronimo.xbeans.wsdl.TDocumentation addNewDocumentation()
078        {
079            synchronized (monitor())
080            {
081                check_orphaned();
082                org.apache.geronimo.xbeans.wsdl.TDocumentation target = null;
083                target = (org.apache.geronimo.xbeans.wsdl.TDocumentation)get_store().add_element_user(DOCUMENTATION$0);
084                return target;
085            }
086        }
087        
088        /**
089         * Unsets the "documentation" element
090         */
091        public void unsetDocumentation()
092        {
093            synchronized (monitor())
094            {
095                check_orphaned();
096                get_store().remove_element(DOCUMENTATION$0, 0);
097            }
098        }
099    }