001/*
002 * XML Type:  metaType
003 * Namespace: http://www.springframework.org/schema/beans
004 * Java type: org.springframework.schema.beans.MetaType
005 *
006 * Automatically generated - do not modify.
007 */
008package org.springframework.schema.beans.impl;
009/**
010 * An XML metaType(@http://www.springframework.org/schema/beans).
011 *
012 * This is a complex type.
013 */
014public class MetaTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.springframework.schema.beans.MetaType
015{
016    private static final long serialVersionUID = 1L;
017    
018    public MetaTypeImpl(org.apache.xmlbeans.SchemaType sType)
019    {
020        super(sType);
021    }
022    
023    private static final javax.xml.namespace.QName KEY$0 = 
024        new javax.xml.namespace.QName("", "key");
025    private static final javax.xml.namespace.QName VALUE$2 = 
026        new javax.xml.namespace.QName("", "value");
027    
028    
029    /**
030     * Gets the "key" attribute
031     */
032    public java.lang.String getKey()
033    {
034        synchronized (monitor())
035        {
036            check_orphaned();
037            org.apache.xmlbeans.SimpleValue target = null;
038            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(KEY$0);
039            if (target == null)
040            {
041                return null;
042            }
043            return target.getStringValue();
044        }
045    }
046    
047    /**
048     * Gets (as xml) the "key" attribute
049     */
050    public org.apache.xmlbeans.XmlString xgetKey()
051    {
052        synchronized (monitor())
053        {
054            check_orphaned();
055            org.apache.xmlbeans.XmlString target = null;
056            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(KEY$0);
057            return target;
058        }
059    }
060    
061    /**
062     * Sets the "key" attribute
063     */
064    public void setKey(java.lang.String key)
065    {
066        synchronized (monitor())
067        {
068            check_orphaned();
069            org.apache.xmlbeans.SimpleValue target = null;
070            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(KEY$0);
071            if (target == null)
072            {
073                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(KEY$0);
074            }
075            target.setStringValue(key);
076        }
077    }
078    
079    /**
080     * Sets (as xml) the "key" attribute
081     */
082    public void xsetKey(org.apache.xmlbeans.XmlString key)
083    {
084        synchronized (monitor())
085        {
086            check_orphaned();
087            org.apache.xmlbeans.XmlString target = null;
088            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(KEY$0);
089            if (target == null)
090            {
091                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(KEY$0);
092            }
093            target.set(key);
094        }
095    }
096    
097    /**
098     * Gets the "value" attribute
099     */
100    public java.lang.String getValue()
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(VALUE$2);
107            if (target == null)
108            {
109                return null;
110            }
111            return target.getStringValue();
112        }
113    }
114    
115    /**
116     * Gets (as xml) the "value" attribute
117     */
118    public org.apache.xmlbeans.XmlString xgetValue()
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(VALUE$2);
125            return target;
126        }
127    }
128    
129    /**
130     * Sets the "value" attribute
131     */
132    public void setValue(java.lang.String value)
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(VALUE$2);
139            if (target == null)
140            {
141                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(VALUE$2);
142            }
143            target.setStringValue(value);
144        }
145    }
146    
147    /**
148     * Sets (as xml) the "value" attribute
149     */
150    public void xsetValue(org.apache.xmlbeans.XmlString value)
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(VALUE$2);
157            if (target == null)
158            {
159                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(VALUE$2);
160            }
161            target.set(value);
162        }
163    }
164}