001    /*
002     * XML Type:  tFault
003     * Namespace: http://schemas.xmlsoap.org/wsdl/
004     * Java type: org.apache.geronimo.xbeans.wsdl.TFault
005     *
006     * Automatically generated - do not modify.
007     */
008    package org.apache.geronimo.xbeans.wsdl.impl;
009    /**
010     * An XML tFault(@http://schemas.xmlsoap.org/wsdl/).
011     *
012     * This is a complex type.
013     */
014    public class TFaultImpl extends org.apache.geronimo.xbeans.wsdl.impl.TExtensibleAttributesDocumentedImpl implements org.apache.geronimo.xbeans.wsdl.TFault
015    {
016        
017        public TFaultImpl(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         * Sets the "name" attribute
062         */
063        public void setName(java.lang.String name)
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(NAME$0);
070                if (target == null)
071                {
072                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$0);
073                }
074                target.setStringValue(name);
075            }
076        }
077        
078        /**
079         * Sets (as xml) the "name" attribute
080         */
081        public void xsetName(org.apache.xmlbeans.XmlNCName name)
082        {
083            synchronized (monitor())
084            {
085                check_orphaned();
086                org.apache.xmlbeans.XmlNCName target = null;
087                target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(NAME$0);
088                if (target == null)
089                {
090                    target = (org.apache.xmlbeans.XmlNCName)get_store().add_attribute_user(NAME$0);
091                }
092                target.set(name);
093            }
094        }
095        
096        /**
097         * Gets the "message" attribute
098         */
099        public javax.xml.namespace.QName getMessage()
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(MESSAGE$2);
106                if (target == null)
107                {
108                    return null;
109                }
110                return target.getQNameValue();
111            }
112        }
113        
114        /**
115         * Gets (as xml) the "message" attribute
116         */
117        public org.apache.xmlbeans.XmlQName xgetMessage()
118        {
119            synchronized (monitor())
120            {
121                check_orphaned();
122                org.apache.xmlbeans.XmlQName target = null;
123                target = (org.apache.xmlbeans.XmlQName)get_store().find_attribute_user(MESSAGE$2);
124                return target;
125            }
126        }
127        
128        /**
129         * Sets the "message" attribute
130         */
131        public void setMessage(javax.xml.namespace.QName message)
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(MESSAGE$2);
138                if (target == null)
139                {
140                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(MESSAGE$2);
141                }
142                target.setQNameValue(message);
143            }
144        }
145        
146        /**
147         * Sets (as xml) the "message" attribute
148         */
149        public void xsetMessage(org.apache.xmlbeans.XmlQName message)
150        {
151            synchronized (monitor())
152            {
153                check_orphaned();
154                org.apache.xmlbeans.XmlQName target = null;
155                target = (org.apache.xmlbeans.XmlQName)get_store().find_attribute_user(MESSAGE$2);
156                if (target == null)
157                {
158                    target = (org.apache.xmlbeans.XmlQName)get_store().add_attribute_user(MESSAGE$2);
159                }
160                target.set(message);
161            }
162        }
163    }