001/*
002 * XML Type:  collectionType
003 * Namespace: http://www.springframework.org/schema/beans
004 * Java type: org.springframework.schema.beans.CollectionType
005 *
006 * Automatically generated - do not modify.
007 */
008package org.springframework.schema.beans.impl;
009/**
010 * An XML collectionType(@http://www.springframework.org/schema/beans).
011 *
012 * This is a complex type.
013 */
014public class CollectionTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.springframework.schema.beans.CollectionType
015{
016    private static final long serialVersionUID = 1L;
017    
018    public CollectionTypeImpl(org.apache.xmlbeans.SchemaType sType)
019    {
020        super(sType);
021    }
022    
023    private static final javax.xml.namespace.QName VALUETYPE$0 = 
024        new javax.xml.namespace.QName("", "value-type");
025    
026    
027    /**
028     * Gets the "value-type" attribute
029     */
030    public java.lang.String getValueType()
031    {
032        synchronized (monitor())
033        {
034            check_orphaned();
035            org.apache.xmlbeans.SimpleValue target = null;
036            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VALUETYPE$0);
037            if (target == null)
038            {
039                return null;
040            }
041            return target.getStringValue();
042        }
043    }
044    
045    /**
046     * Gets (as xml) the "value-type" attribute
047     */
048    public org.apache.xmlbeans.XmlString xgetValueType()
049    {
050        synchronized (monitor())
051        {
052            check_orphaned();
053            org.apache.xmlbeans.XmlString target = null;
054            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(VALUETYPE$0);
055            return target;
056        }
057    }
058    
059    /**
060     * True if has "value-type" attribute
061     */
062    public boolean isSetValueType()
063    {
064        synchronized (monitor())
065        {
066            check_orphaned();
067            return get_store().find_attribute_user(VALUETYPE$0) != null;
068        }
069    }
070    
071    /**
072     * Sets the "value-type" attribute
073     */
074    public void setValueType(java.lang.String valueType)
075    {
076        synchronized (monitor())
077        {
078            check_orphaned();
079            org.apache.xmlbeans.SimpleValue target = null;
080            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VALUETYPE$0);
081            if (target == null)
082            {
083                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(VALUETYPE$0);
084            }
085            target.setStringValue(valueType);
086        }
087    }
088    
089    /**
090     * Sets (as xml) the "value-type" attribute
091     */
092    public void xsetValueType(org.apache.xmlbeans.XmlString valueType)
093    {
094        synchronized (monitor())
095        {
096            check_orphaned();
097            org.apache.xmlbeans.XmlString target = null;
098            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(VALUETYPE$0);
099            if (target == null)
100            {
101                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(VALUETYPE$0);
102            }
103            target.set(valueType);
104        }
105    }
106    
107    /**
108     * Unsets the "value-type" attribute
109     */
110    public void unsetValueType()
111    {
112        synchronized (monitor())
113        {
114            check_orphaned();
115            get_store().remove_attribute(VALUETYPE$0);
116        }
117    }
118}