/*
 * An XML document type.
 * Localname: StaticValues
 * Namespace: http://docs.oasis-open.org/wsrf/2004/10/wsrf-WSResourceMetadataDescriptor-1.0-draft-01.xsd
 * Java type: org.activemq.ws.xmlbeans.resource.md.StaticValuesDocument
 *
 * Automatically generated - do not modify.
 */
package org.activemq.ws.xmlbeans.resource.md.impl;
/**
 * A document containing one StaticValues(@http://docs.oasis-open.org/wsrf/2004/10/wsrf-WSResourceMetadataDescriptor-1.0-draft-01.xsd) element.
 *
 * This is a complex type.
 */
public class StaticValuesDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.resource.md.StaticValuesDocument
{
    
    public StaticValuesDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName STATICVALUES$0 = 
        new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2004/10/wsrf-WSResourceMetadataDescriptor-1.0-draft-01.xsd", "StaticValues");
    
    
    /**
     * Gets the "StaticValues" element
     */
    public org.activemq.ws.xmlbeans.resource.md.StaticValuesType getStaticValues()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.resource.md.StaticValuesType target = null;
            target = (org.activemq.ws.xmlbeans.resource.md.StaticValuesType)get_store().find_element_user(STATICVALUES$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "StaticValues" element
     */
    public void setStaticValues(org.activemq.ws.xmlbeans.resource.md.StaticValuesType staticValues)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.resource.md.StaticValuesType target = null;
            target = (org.activemq.ws.xmlbeans.resource.md.StaticValuesType)get_store().find_element_user(STATICVALUES$0, 0);
            if (target == null)
            {
                target = (org.activemq.ws.xmlbeans.resource.md.StaticValuesType)get_store().add_element_user(STATICVALUES$0);
            }
            target.set(staticValues);
        }
    }
    
    /**
     * Appends and returns a new empty "StaticValues" element
     */
    public org.activemq.ws.xmlbeans.resource.md.StaticValuesType addNewStaticValues()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.resource.md.StaticValuesType target = null;
            target = (org.activemq.ws.xmlbeans.resource.md.StaticValuesType)get_store().add_element_user(STATICVALUES$0);
            return target;
        }
    }
}
