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