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