001/*
002 * An XML document type.
003 * Localname: arg-type
004 * Namespace: http://www.springframework.org/schema/beans
005 * Java type: org.springframework.schema.beans.ArgTypeDocument
006 *
007 * Automatically generated - do not modify.
008 */
009package org.springframework.schema.beans.impl;
010/**
011 * A document containing one arg-type(@http://www.springframework.org/schema/beans) element.
012 *
013 * This is a complex type.
014 */
015public class ArgTypeDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.springframework.schema.beans.ArgTypeDocument
016{
017    private static final long serialVersionUID = 1L;
018    
019    public ArgTypeDocumentImpl(org.apache.xmlbeans.SchemaType sType)
020    {
021        super(sType);
022    }
023    
024    private static final javax.xml.namespace.QName ARGTYPE$0 = 
025        new javax.xml.namespace.QName("http://www.springframework.org/schema/beans", "arg-type");
026    
027    
028    /**
029     * Gets the "arg-type" element
030     */
031    public org.springframework.schema.beans.ArgTypeDocument.ArgType getArgType()
032    {
033        synchronized (monitor())
034        {
035            check_orphaned();
036            org.springframework.schema.beans.ArgTypeDocument.ArgType target = null;
037            target = (org.springframework.schema.beans.ArgTypeDocument.ArgType)get_store().find_element_user(ARGTYPE$0, 0);
038            if (target == null)
039            {
040                return null;
041            }
042            return target;
043        }
044    }
045    
046    /**
047     * Sets the "arg-type" element
048     */
049    public void setArgType(org.springframework.schema.beans.ArgTypeDocument.ArgType argType)
050    {
051        synchronized (monitor())
052        {
053            check_orphaned();
054            org.springframework.schema.beans.ArgTypeDocument.ArgType target = null;
055            target = (org.springframework.schema.beans.ArgTypeDocument.ArgType)get_store().find_element_user(ARGTYPE$0, 0);
056            if (target == null)
057            {
058                target = (org.springframework.schema.beans.ArgTypeDocument.ArgType)get_store().add_element_user(ARGTYPE$0);
059            }
060            target.set(argType);
061        }
062    }
063    
064    /**
065     * Appends and returns a new empty "arg-type" element
066     */
067    public org.springframework.schema.beans.ArgTypeDocument.ArgType addNewArgType()
068    {
069        synchronized (monitor())
070        {
071            check_orphaned();
072            org.springframework.schema.beans.ArgTypeDocument.ArgType target = null;
073            target = (org.springframework.schema.beans.ArgTypeDocument.ArgType)get_store().add_element_user(ARGTYPE$0);
074            return target;
075        }
076    }
077    /**
078     * An XML arg-type(@http://www.springframework.org/schema/beans).
079     *
080     * This is a complex type.
081     */
082    public static class ArgTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.springframework.schema.beans.ArgTypeDocument.ArgType
083    {
084        private static final long serialVersionUID = 1L;
085        
086        public ArgTypeImpl(org.apache.xmlbeans.SchemaType sType)
087        {
088            super(sType);
089        }
090        
091        private static final javax.xml.namespace.QName MATCH$0 = 
092            new javax.xml.namespace.QName("", "match");
093        
094        
095        /**
096         * Gets the "match" attribute
097         */
098        public java.lang.String getMatch()
099        {
100            synchronized (monitor())
101            {
102                check_orphaned();
103                org.apache.xmlbeans.SimpleValue target = null;
104                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MATCH$0);
105                if (target == null)
106                {
107                    return null;
108                }
109                return target.getStringValue();
110            }
111        }
112        
113        /**
114         * Gets (as xml) the "match" attribute
115         */
116        public org.apache.xmlbeans.XmlString xgetMatch()
117        {
118            synchronized (monitor())
119            {
120                check_orphaned();
121                org.apache.xmlbeans.XmlString target = null;
122                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(MATCH$0);
123                return target;
124            }
125        }
126        
127        /**
128         * True if has "match" attribute
129         */
130        public boolean isSetMatch()
131        {
132            synchronized (monitor())
133            {
134                check_orphaned();
135                return get_store().find_attribute_user(MATCH$0) != null;
136            }
137        }
138        
139        /**
140         * Sets the "match" attribute
141         */
142        public void setMatch(java.lang.String match)
143        {
144            synchronized (monitor())
145            {
146                check_orphaned();
147                org.apache.xmlbeans.SimpleValue target = null;
148                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MATCH$0);
149                if (target == null)
150                {
151                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(MATCH$0);
152                }
153                target.setStringValue(match);
154            }
155        }
156        
157        /**
158         * Sets (as xml) the "match" attribute
159         */
160        public void xsetMatch(org.apache.xmlbeans.XmlString match)
161        {
162            synchronized (monitor())
163            {
164                check_orphaned();
165                org.apache.xmlbeans.XmlString target = null;
166                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(MATCH$0);
167                if (target == null)
168                {
169                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(MATCH$0);
170                }
171                target.set(match);
172            }
173        }
174        
175        /**
176         * Unsets the "match" attribute
177         */
178        public void unsetMatch()
179        {
180            synchronized (monitor())
181            {
182                check_orphaned();
183                get_store().remove_attribute(MATCH$0);
184            }
185        }
186    }
187}