001    /*
002     * XML Type:  tParam
003     * Namespace: http://schemas.xmlsoap.org/wsdl/
004     * Java type: org.apache.geronimo.xbeans.wsdl.TParam
005     *
006     * Automatically generated - do not modify.
007     */
008    package org.apache.geronimo.xbeans.wsdl.impl;
009    /**
010     * An XML tParam(@http://schemas.xmlsoap.org/wsdl/).
011     *
012     * This is a complex type.
013     */
014    public class TParamImpl extends org.apache.geronimo.xbeans.wsdl.impl.TExtensibleAttributesDocumentedImpl implements org.apache.geronimo.xbeans.wsdl.TParam
015    {
016        
017        public TParamImpl(org.apache.xmlbeans.SchemaType sType)
018        {
019            super(sType);
020        }
021        
022        private static final javax.xml.namespace.QName NAME$0 = 
023            new javax.xml.namespace.QName("", "name");
024        private static final javax.xml.namespace.QName MESSAGE$2 = 
025            new javax.xml.namespace.QName("", "message");
026        
027        
028        /**
029         * Gets the "name" attribute
030         */
031        public java.lang.String getName()
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(NAME$0);
038                if (target == null)
039                {
040                    return null;
041                }
042                return target.getStringValue();
043            }
044        }
045        
046        /**
047         * Gets (as xml) the "name" attribute
048         */
049        public org.apache.xmlbeans.XmlNCName xgetName()
050        {
051            synchronized (monitor())
052            {
053                check_orphaned();
054                org.apache.xmlbeans.XmlNCName target = null;
055                target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(NAME$0);
056                return target;
057            }
058        }
059        
060        /**
061         * True if has "name" attribute
062         */
063        public boolean isSetName()
064        {
065            synchronized (monitor())
066            {
067                check_orphaned();
068                return get_store().find_attribute_user(NAME$0) != null;
069            }
070        }
071        
072        /**
073         * Sets the "name" attribute
074         */
075        public void setName(java.lang.String name)
076        {
077            synchronized (monitor())
078            {
079                check_orphaned();
080                org.apache.xmlbeans.SimpleValue target = null;
081                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$0);
082                if (target == null)
083                {
084                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$0);
085                }
086                target.setStringValue(name);
087            }
088        }
089        
090        /**
091         * Sets (as xml) the "name" attribute
092         */
093        public void xsetName(org.apache.xmlbeans.XmlNCName name)
094        {
095            synchronized (monitor())
096            {
097                check_orphaned();
098                org.apache.xmlbeans.XmlNCName target = null;
099                target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(NAME$0);
100                if (target == null)
101                {
102                    target = (org.apache.xmlbeans.XmlNCName)get_store().add_attribute_user(NAME$0);
103                }
104                target.set(name);
105            }
106        }
107        
108        /**
109         * Unsets the "name" attribute
110         */
111        public void unsetName()
112        {
113            synchronized (monitor())
114            {
115                check_orphaned();
116                get_store().remove_attribute(NAME$0);
117            }
118        }
119        
120        /**
121         * Gets the "message" attribute
122         */
123        public javax.xml.namespace.QName getMessage()
124        {
125            synchronized (monitor())
126            {
127                check_orphaned();
128                org.apache.xmlbeans.SimpleValue target = null;
129                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MESSAGE$2);
130                if (target == null)
131                {
132                    return null;
133                }
134                return target.getQNameValue();
135            }
136        }
137        
138        /**
139         * Gets (as xml) the "message" attribute
140         */
141        public org.apache.xmlbeans.XmlQName xgetMessage()
142        {
143            synchronized (monitor())
144            {
145                check_orphaned();
146                org.apache.xmlbeans.XmlQName target = null;
147                target = (org.apache.xmlbeans.XmlQName)get_store().find_attribute_user(MESSAGE$2);
148                return target;
149            }
150        }
151        
152        /**
153         * Sets the "message" attribute
154         */
155        public void setMessage(javax.xml.namespace.QName message)
156        {
157            synchronized (monitor())
158            {
159                check_orphaned();
160                org.apache.xmlbeans.SimpleValue target = null;
161                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MESSAGE$2);
162                if (target == null)
163                {
164                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(MESSAGE$2);
165                }
166                target.setQNameValue(message);
167            }
168        }
169        
170        /**
171         * Sets (as xml) the "message" attribute
172         */
173        public void xsetMessage(org.apache.xmlbeans.XmlQName message)
174        {
175            synchronized (monitor())
176            {
177                check_orphaned();
178                org.apache.xmlbeans.XmlQName target = null;
179                target = (org.apache.xmlbeans.XmlQName)get_store().find_attribute_user(MESSAGE$2);
180                if (target == null)
181                {
182                    target = (org.apache.xmlbeans.XmlQName)get_store().add_attribute_user(MESSAGE$2);
183                }
184                target.set(message);
185            }
186        }
187    }