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