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