001    /*
002     * XML Type:  tImport
003     * Namespace: http://schemas.xmlsoap.org/wsdl/
004     * Java type: org.apache.geronimo.xbeans.wsdl.TImport
005     *
006     * Automatically generated - do not modify.
007     */
008    package org.apache.geronimo.xbeans.wsdl.impl;
009    /**
010     * An XML tImport(@http://schemas.xmlsoap.org/wsdl/).
011     *
012     * This is a complex type.
013     */
014    public class TImportImpl extends org.apache.geronimo.xbeans.wsdl.impl.TExtensibleAttributesDocumentedImpl implements org.apache.geronimo.xbeans.wsdl.TImport
015    {
016        
017        public TImportImpl(org.apache.xmlbeans.SchemaType sType)
018        {
019            super(sType);
020        }
021        
022        private static final javax.xml.namespace.QName NAMESPACE$0 = 
023            new javax.xml.namespace.QName("", "namespace");
024        private static final javax.xml.namespace.QName LOCATION$2 = 
025            new javax.xml.namespace.QName("", "location");
026        
027        
028        /**
029         * Gets the "namespace" attribute
030         */
031        public java.lang.String getNamespace()
032        {
033            synchronized (monitor())
034            {
035                check_orphaned();
036                org.apache.xmlbeans.SimpleValue target = null;
037                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAMESPACE$0);
038                if (target == null)
039                {
040                    return null;
041                }
042                return target.getStringValue();
043            }
044        }
045        
046        /**
047         * Gets (as xml) the "namespace" attribute
048         */
049        public org.apache.xmlbeans.XmlAnyURI xgetNamespace()
050        {
051            synchronized (monitor())
052            {
053                check_orphaned();
054                org.apache.xmlbeans.XmlAnyURI target = null;
055                target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_attribute_user(NAMESPACE$0);
056                return target;
057            }
058        }
059        
060        /**
061         * Sets the "namespace" attribute
062         */
063        public void setNamespace(java.lang.String namespace)
064        {
065            synchronized (monitor())
066            {
067                check_orphaned();
068                org.apache.xmlbeans.SimpleValue target = null;
069                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAMESPACE$0);
070                if (target == null)
071                {
072                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAMESPACE$0);
073                }
074                target.setStringValue(namespace);
075            }
076        }
077        
078        /**
079         * Sets (as xml) the "namespace" attribute
080         */
081        public void xsetNamespace(org.apache.xmlbeans.XmlAnyURI namespace)
082        {
083            synchronized (monitor())
084            {
085                check_orphaned();
086                org.apache.xmlbeans.XmlAnyURI target = null;
087                target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_attribute_user(NAMESPACE$0);
088                if (target == null)
089                {
090                    target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_attribute_user(NAMESPACE$0);
091                }
092                target.set(namespace);
093            }
094        }
095        
096        /**
097         * Gets the "location" attribute
098         */
099        public java.lang.String getLocation()
100        {
101            synchronized (monitor())
102            {
103                check_orphaned();
104                org.apache.xmlbeans.SimpleValue target = null;
105                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LOCATION$2);
106                if (target == null)
107                {
108                    return null;
109                }
110                return target.getStringValue();
111            }
112        }
113        
114        /**
115         * Gets (as xml) the "location" attribute
116         */
117        public org.apache.xmlbeans.XmlAnyURI xgetLocation()
118        {
119            synchronized (monitor())
120            {
121                check_orphaned();
122                org.apache.xmlbeans.XmlAnyURI target = null;
123                target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_attribute_user(LOCATION$2);
124                return target;
125            }
126        }
127        
128        /**
129         * Sets the "location" attribute
130         */
131        public void setLocation(java.lang.String location)
132        {
133            synchronized (monitor())
134            {
135                check_orphaned();
136                org.apache.xmlbeans.SimpleValue target = null;
137                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LOCATION$2);
138                if (target == null)
139                {
140                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(LOCATION$2);
141                }
142                target.setStringValue(location);
143            }
144        }
145        
146        /**
147         * Sets (as xml) the "location" attribute
148         */
149        public void xsetLocation(org.apache.xmlbeans.XmlAnyURI location)
150        {
151            synchronized (monitor())
152            {
153                check_orphaned();
154                org.apache.xmlbeans.XmlAnyURI target = null;
155                target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_attribute_user(LOCATION$2);
156                if (target == null)
157                {
158                    target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_attribute_user(LOCATION$2);
159                }
160                target.set(location);
161            }
162        }
163    }