001/*
002 * An XML document type.
003 * Localname: alias
004 * Namespace: http://www.springframework.org/schema/beans
005 * Java type: org.springframework.schema.beans.AliasDocument
006 *
007 * Automatically generated - do not modify.
008 */
009package org.springframework.schema.beans.impl;
010/**
011 * A document containing one alias(@http://www.springframework.org/schema/beans) element.
012 *
013 * This is a complex type.
014 */
015public class AliasDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.springframework.schema.beans.AliasDocument
016{
017    private static final long serialVersionUID = 1L;
018    
019    public AliasDocumentImpl(org.apache.xmlbeans.SchemaType sType)
020    {
021        super(sType);
022    }
023    
024    private static final javax.xml.namespace.QName ALIAS$0 = 
025        new javax.xml.namespace.QName("http://www.springframework.org/schema/beans", "alias");
026    
027    
028    /**
029     * Gets the "alias" element
030     */
031    public org.springframework.schema.beans.AliasDocument.Alias getAlias()
032    {
033        synchronized (monitor())
034        {
035            check_orphaned();
036            org.springframework.schema.beans.AliasDocument.Alias target = null;
037            target = (org.springframework.schema.beans.AliasDocument.Alias)get_store().find_element_user(ALIAS$0, 0);
038            if (target == null)
039            {
040                return null;
041            }
042            return target;
043        }
044    }
045    
046    /**
047     * Sets the "alias" element
048     */
049    public void setAlias(org.springframework.schema.beans.AliasDocument.Alias alias)
050    {
051        synchronized (monitor())
052        {
053            check_orphaned();
054            org.springframework.schema.beans.AliasDocument.Alias target = null;
055            target = (org.springframework.schema.beans.AliasDocument.Alias)get_store().find_element_user(ALIAS$0, 0);
056            if (target == null)
057            {
058                target = (org.springframework.schema.beans.AliasDocument.Alias)get_store().add_element_user(ALIAS$0);
059            }
060            target.set(alias);
061        }
062    }
063    
064    /**
065     * Appends and returns a new empty "alias" element
066     */
067    public org.springframework.schema.beans.AliasDocument.Alias addNewAlias()
068    {
069        synchronized (monitor())
070        {
071            check_orphaned();
072            org.springframework.schema.beans.AliasDocument.Alias target = null;
073            target = (org.springframework.schema.beans.AliasDocument.Alias)get_store().add_element_user(ALIAS$0);
074            return target;
075        }
076    }
077    /**
078     * An XML alias(@http://www.springframework.org/schema/beans).
079     *
080     * This is a complex type.
081     */
082    public static class AliasImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.springframework.schema.beans.AliasDocument.Alias
083    {
084        private static final long serialVersionUID = 1L;
085        
086        public AliasImpl(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 ALIAS$2 = 
094            new javax.xml.namespace.QName("", "alias");
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         * Sets the "name" attribute
131         */
132        public void setName(java.lang.String name)
133        {
134            synchronized (monitor())
135            {
136                check_orphaned();
137                org.apache.xmlbeans.SimpleValue target = null;
138                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$0);
139                if (target == null)
140                {
141                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$0);
142                }
143                target.setStringValue(name);
144            }
145        }
146        
147        /**
148         * Sets (as xml) the "name" attribute
149         */
150        public void xsetName(org.apache.xmlbeans.XmlString name)
151        {
152            synchronized (monitor())
153            {
154                check_orphaned();
155                org.apache.xmlbeans.XmlString target = null;
156                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$0);
157                if (target == null)
158                {
159                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(NAME$0);
160                }
161                target.set(name);
162            }
163        }
164        
165        /**
166         * Gets the "alias" attribute
167         */
168        public java.lang.String getAlias()
169        {
170            synchronized (monitor())
171            {
172                check_orphaned();
173                org.apache.xmlbeans.SimpleValue target = null;
174                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ALIAS$2);
175                if (target == null)
176                {
177                    return null;
178                }
179                return target.getStringValue();
180            }
181        }
182        
183        /**
184         * Gets (as xml) the "alias" attribute
185         */
186        public org.apache.xmlbeans.XmlString xgetAlias()
187        {
188            synchronized (monitor())
189            {
190                check_orphaned();
191                org.apache.xmlbeans.XmlString target = null;
192                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ALIAS$2);
193                return target;
194            }
195        }
196        
197        /**
198         * Sets the "alias" attribute
199         */
200        public void setAlias(java.lang.String alias)
201        {
202            synchronized (monitor())
203            {
204                check_orphaned();
205                org.apache.xmlbeans.SimpleValue target = null;
206                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ALIAS$2);
207                if (target == null)
208                {
209                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ALIAS$2);
210                }
211                target.setStringValue(alias);
212            }
213        }
214        
215        /**
216         * Sets (as xml) the "alias" attribute
217         */
218        public void xsetAlias(org.apache.xmlbeans.XmlString alias)
219        {
220            synchronized (monitor())
221            {
222                check_orphaned();
223                org.apache.xmlbeans.XmlString target = null;
224                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ALIAS$2);
225                if (target == null)
226                {
227                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(ALIAS$2);
228                }
229                target.set(alias);
230            }
231        }
232    }
233}