001/*
002 * An XML document type.
003 * Localname: attribute
004 * Namespace: http://www.springframework.org/schema/beans
005 * Java type: org.springframework.schema.beans.AttributeDocument
006 *
007 * Automatically generated - do not modify.
008 */
009package org.springframework.schema.beans.impl;
010/**
011 * A document containing one attribute(@http://www.springframework.org/schema/beans) element.
012 *
013 * This is a complex type.
014 */
015public class AttributeDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.springframework.schema.beans.AttributeDocument
016{
017    private static final long serialVersionUID = 1L;
018    
019    public AttributeDocumentImpl(org.apache.xmlbeans.SchemaType sType)
020    {
021        super(sType);
022    }
023    
024    private static final javax.xml.namespace.QName ATTRIBUTE$0 = 
025        new javax.xml.namespace.QName("http://www.springframework.org/schema/beans", "attribute");
026    
027    
028    /**
029     * Gets the "attribute" element
030     */
031    public org.springframework.schema.beans.MetaType getAttribute()
032    {
033        synchronized (monitor())
034        {
035            check_orphaned();
036            org.springframework.schema.beans.MetaType target = null;
037            target = (org.springframework.schema.beans.MetaType)get_store().find_element_user(ATTRIBUTE$0, 0);
038            if (target == null)
039            {
040                return null;
041            }
042            return target;
043        }
044    }
045    
046    /**
047     * Sets the "attribute" element
048     */
049    public void setAttribute(org.springframework.schema.beans.MetaType attribute)
050    {
051        synchronized (monitor())
052        {
053            check_orphaned();
054            org.springframework.schema.beans.MetaType target = null;
055            target = (org.springframework.schema.beans.MetaType)get_store().find_element_user(ATTRIBUTE$0, 0);
056            if (target == null)
057            {
058                target = (org.springframework.schema.beans.MetaType)get_store().add_element_user(ATTRIBUTE$0);
059            }
060            target.set(attribute);
061        }
062    }
063    
064    /**
065     * Appends and returns a new empty "attribute" element
066     */
067    public org.springframework.schema.beans.MetaType addNewAttribute()
068    {
069        synchronized (monitor())
070        {
071            check_orphaned();
072            org.springframework.schema.beans.MetaType target = null;
073            target = (org.springframework.schema.beans.MetaType)get_store().add_element_user(ATTRIBUTE$0);
074            return target;
075        }
076    }
077}