001/*
002 * An XML document type.
003 * Localname: lookup-method
004 * Namespace: http://www.springframework.org/schema/beans
005 * Java type: org.springframework.schema.beans.LookupMethodDocument
006 *
007 * Automatically generated - do not modify.
008 */
009package org.springframework.schema.beans.impl;
010/**
011 * A document containing one lookup-method(@http://www.springframework.org/schema/beans) element.
012 *
013 * This is a complex type.
014 */
015public class LookupMethodDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.springframework.schema.beans.LookupMethodDocument
016{
017    private static final long serialVersionUID = 1L;
018    
019    public LookupMethodDocumentImpl(org.apache.xmlbeans.SchemaType sType)
020    {
021        super(sType);
022    }
023    
024    private static final javax.xml.namespace.QName LOOKUPMETHOD$0 = 
025        new javax.xml.namespace.QName("http://www.springframework.org/schema/beans", "lookup-method");
026    
027    
028    /**
029     * Gets the "lookup-method" element
030     */
031    public org.springframework.schema.beans.LookupMethodDocument.LookupMethod getLookupMethod()
032    {
033        synchronized (monitor())
034        {
035            check_orphaned();
036            org.springframework.schema.beans.LookupMethodDocument.LookupMethod target = null;
037            target = (org.springframework.schema.beans.LookupMethodDocument.LookupMethod)get_store().find_element_user(LOOKUPMETHOD$0, 0);
038            if (target == null)
039            {
040                return null;
041            }
042            return target;
043        }
044    }
045    
046    /**
047     * Sets the "lookup-method" element
048     */
049    public void setLookupMethod(org.springframework.schema.beans.LookupMethodDocument.LookupMethod lookupMethod)
050    {
051        synchronized (monitor())
052        {
053            check_orphaned();
054            org.springframework.schema.beans.LookupMethodDocument.LookupMethod target = null;
055            target = (org.springframework.schema.beans.LookupMethodDocument.LookupMethod)get_store().find_element_user(LOOKUPMETHOD$0, 0);
056            if (target == null)
057            {
058                target = (org.springframework.schema.beans.LookupMethodDocument.LookupMethod)get_store().add_element_user(LOOKUPMETHOD$0);
059            }
060            target.set(lookupMethod);
061        }
062    }
063    
064    /**
065     * Appends and returns a new empty "lookup-method" element
066     */
067    public org.springframework.schema.beans.LookupMethodDocument.LookupMethod addNewLookupMethod()
068    {
069        synchronized (monitor())
070        {
071            check_orphaned();
072            org.springframework.schema.beans.LookupMethodDocument.LookupMethod target = null;
073            target = (org.springframework.schema.beans.LookupMethodDocument.LookupMethod)get_store().add_element_user(LOOKUPMETHOD$0);
074            return target;
075        }
076    }
077    /**
078     * An XML lookup-method(@http://www.springframework.org/schema/beans).
079     *
080     * This is a complex type.
081     */
082    public static class LookupMethodImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.springframework.schema.beans.LookupMethodDocument.LookupMethod
083    {
084        private static final long serialVersionUID = 1L;
085        
086        public LookupMethodImpl(org.apache.xmlbeans.SchemaType sType)
087        {
088            super(sType);
089        }
090        
091        private static final javax.xml.namespace.QName NAME$0 = 
092            new javax.xml.namespace.QName("", "name");
093        private static final javax.xml.namespace.QName BEAN$2 = 
094            new javax.xml.namespace.QName("", "bean");
095        
096        
097        /**
098         * Gets the "name" attribute
099         */
100        public java.lang.String getName()
101        {
102            synchronized (monitor())
103            {
104                check_orphaned();
105                org.apache.xmlbeans.SimpleValue target = null;
106                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$0);
107                if (target == null)
108                {
109                    return null;
110                }
111                return target.getStringValue();
112            }
113        }
114        
115        /**
116         * Gets (as xml) the "name" attribute
117         */
118        public org.apache.xmlbeans.XmlString xgetName()
119        {
120            synchronized (monitor())
121            {
122                check_orphaned();
123                org.apache.xmlbeans.XmlString target = null;
124                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$0);
125                return target;
126            }
127        }
128        
129        /**
130         * True if has "name" attribute
131         */
132        public boolean isSetName()
133        {
134            synchronized (monitor())
135            {
136                check_orphaned();
137                return get_store().find_attribute_user(NAME$0) != null;
138            }
139        }
140        
141        /**
142         * Sets the "name" attribute
143         */
144        public void setName(java.lang.String name)
145        {
146            synchronized (monitor())
147            {
148                check_orphaned();
149                org.apache.xmlbeans.SimpleValue target = null;
150                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$0);
151                if (target == null)
152                {
153                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$0);
154                }
155                target.setStringValue(name);
156            }
157        }
158        
159        /**
160         * Sets (as xml) the "name" attribute
161         */
162        public void xsetName(org.apache.xmlbeans.XmlString name)
163        {
164            synchronized (monitor())
165            {
166                check_orphaned();
167                org.apache.xmlbeans.XmlString target = null;
168                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$0);
169                if (target == null)
170                {
171                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(NAME$0);
172                }
173                target.set(name);
174            }
175        }
176        
177        /**
178         * Unsets the "name" attribute
179         */
180        public void unsetName()
181        {
182            synchronized (monitor())
183            {
184                check_orphaned();
185                get_store().remove_attribute(NAME$0);
186            }
187        }
188        
189        /**
190         * Gets the "bean" attribute
191         */
192        public java.lang.String getBean()
193        {
194            synchronized (monitor())
195            {
196                check_orphaned();
197                org.apache.xmlbeans.SimpleValue target = null;
198                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(BEAN$2);
199                if (target == null)
200                {
201                    return null;
202                }
203                return target.getStringValue();
204            }
205        }
206        
207        /**
208         * Gets (as xml) the "bean" attribute
209         */
210        public org.apache.xmlbeans.XmlString xgetBean()
211        {
212            synchronized (monitor())
213            {
214                check_orphaned();
215                org.apache.xmlbeans.XmlString target = null;
216                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(BEAN$2);
217                return target;
218            }
219        }
220        
221        /**
222         * True if has "bean" attribute
223         */
224        public boolean isSetBean()
225        {
226            synchronized (monitor())
227            {
228                check_orphaned();
229                return get_store().find_attribute_user(BEAN$2) != null;
230            }
231        }
232        
233        /**
234         * Sets the "bean" attribute
235         */
236        public void setBean(java.lang.String bean)
237        {
238            synchronized (monitor())
239            {
240                check_orphaned();
241                org.apache.xmlbeans.SimpleValue target = null;
242                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(BEAN$2);
243                if (target == null)
244                {
245                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(BEAN$2);
246                }
247                target.setStringValue(bean);
248            }
249        }
250        
251        /**
252         * Sets (as xml) the "bean" attribute
253         */
254        public void xsetBean(org.apache.xmlbeans.XmlString bean)
255        {
256            synchronized (monitor())
257            {
258                check_orphaned();
259                org.apache.xmlbeans.XmlString target = null;
260                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(BEAN$2);
261                if (target == null)
262                {
263                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(BEAN$2);
264                }
265                target.set(bean);
266            }
267        }
268        
269        /**
270         * Unsets the "bean" attribute
271         */
272        public void unsetBean()
273        {
274            synchronized (monitor())
275            {
276                check_orphaned();
277                get_store().remove_attribute(BEAN$2);
278            }
279        }
280    }
281}