001/*
002 * An XML document type.
003 * Localname: meta
004 * Namespace: http://www.springframework.org/schema/beans
005 * Java type: org.springframework.schema.beans.MetaDocument
006 *
007 * Automatically generated - do not modify.
008 */
009package org.springframework.schema.beans.impl;
010/**
011 * A document containing one meta(@http://www.springframework.org/schema/beans) element.
012 *
013 * This is a complex type.
014 */
015public class MetaDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.springframework.schema.beans.MetaDocument
016{
017    private static final long serialVersionUID = 1L;
018    
019    public MetaDocumentImpl(org.apache.xmlbeans.SchemaType sType)
020    {
021        super(sType);
022    }
023    
024    private static final javax.xml.namespace.QName META$0 = 
025        new javax.xml.namespace.QName("http://www.springframework.org/schema/beans", "meta");
026    
027    
028    /**
029     * Gets the "meta" element
030     */
031    public org.springframework.schema.beans.MetaType getMeta()
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(META$0, 0);
038            if (target == null)
039            {
040                return null;
041            }
042            return target;
043        }
044    }
045    
046    /**
047     * Sets the "meta" element
048     */
049    public void setMeta(org.springframework.schema.beans.MetaType meta)
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(META$0, 0);
056            if (target == null)
057            {
058                target = (org.springframework.schema.beans.MetaType)get_store().add_element_user(META$0);
059            }
060            target.set(meta);
061        }
062    }
063    
064    /**
065     * Appends and returns a new empty "meta" element
066     */
067    public org.springframework.schema.beans.MetaType addNewMeta()
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(META$0);
074            return target;
075        }
076    }
077}