/*
 * XML Type:  ValidValueRangeType
 * Namespace: http://docs.oasis-open.org/wsrf/2004/10/wsrf-WSResourceMetadataDescriptor-1.0-draft-01.xsd
 * Java type: org.activemq.ws.xmlbeans.resource.md.ValidValueRangeType
 *
 * Automatically generated - do not modify.
 */
package org.activemq.ws.xmlbeans.resource.md.impl;
/**
 * An XML ValidValueRangeType(@http://docs.oasis-open.org/wsrf/2004/10/wsrf-WSResourceMetadataDescriptor-1.0-draft-01.xsd).
 *
 * This is a complex type.
 */
public class ValidValueRangeTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.resource.md.ValidValueRangeType
{
    
    public ValidValueRangeTypeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName DOCUMENTATION$0 = 
        new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2004/10/wsrf-WSResourceMetadataDescriptor-1.0-draft-01.xsd", "documentation");
    private static final javax.xml.namespace.QName LOWERBOUND$2 = 
        new javax.xml.namespace.QName("", "lowerBound");
    private static final javax.xml.namespace.QName UPPERBOUND$4 = 
        new javax.xml.namespace.QName("", "upperBound");
    
    
    /**
     * Gets the "documentation" element
     */
    public org.activemq.ws.xmlbeans.resource.md.DocumentationType getDocumentation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.resource.md.DocumentationType target = null;
            target = (org.activemq.ws.xmlbeans.resource.md.DocumentationType)get_store().find_element_user(DOCUMENTATION$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "documentation" element
     */
    public boolean isSetDocumentation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DOCUMENTATION$0) != 0;
        }
    }
    
    /**
     * Sets the "documentation" element
     */
    public void setDocumentation(org.activemq.ws.xmlbeans.resource.md.DocumentationType documentation)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.resource.md.DocumentationType target = null;
            target = (org.activemq.ws.xmlbeans.resource.md.DocumentationType)get_store().find_element_user(DOCUMENTATION$0, 0);
            if (target == null)
            {
                target = (org.activemq.ws.xmlbeans.resource.md.DocumentationType)get_store().add_element_user(DOCUMENTATION$0);
            }
            target.set(documentation);
        }
    }
    
    /**
     * Appends and returns a new empty "documentation" element
     */
    public org.activemq.ws.xmlbeans.resource.md.DocumentationType addNewDocumentation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.resource.md.DocumentationType target = null;
            target = (org.activemq.ws.xmlbeans.resource.md.DocumentationType)get_store().add_element_user(DOCUMENTATION$0);
            return target;
        }
    }
    
    /**
     * Unsets the "documentation" element
     */
    public void unsetDocumentation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DOCUMENTATION$0, 0);
        }
    }
    
    /**
     * Gets the "lowerBound" attribute
     */
    public org.apache.xmlbeans.XmlAnySimpleType getLowerBound()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlAnySimpleType target = null;
            target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().find_attribute_user(LOWERBOUND$2);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "lowerBound" attribute
     */
    public boolean isSetLowerBound()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(LOWERBOUND$2) != null;
        }
    }
    
    /**
     * Sets the "lowerBound" attribute
     */
    public void setLowerBound(org.apache.xmlbeans.XmlAnySimpleType lowerBound)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlAnySimpleType target = null;
            target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().find_attribute_user(LOWERBOUND$2);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().add_attribute_user(LOWERBOUND$2);
            }
            target.set(lowerBound);
        }
    }
    
    /**
     * Appends and returns a new empty "lowerBound" attribute
     */
    public org.apache.xmlbeans.XmlAnySimpleType addNewLowerBound()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlAnySimpleType target = null;
            target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().add_attribute_user(LOWERBOUND$2);
            return target;
        }
    }
    
    /**
     * Unsets the "lowerBound" attribute
     */
    public void unsetLowerBound()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(LOWERBOUND$2);
        }
    }
    
    /**
     * Gets the "upperBound" attribute
     */
    public org.apache.xmlbeans.XmlAnySimpleType getUpperBound()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlAnySimpleType target = null;
            target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().find_attribute_user(UPPERBOUND$4);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "upperBound" attribute
     */
    public boolean isSetUpperBound()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(UPPERBOUND$4) != null;
        }
    }
    
    /**
     * Sets the "upperBound" attribute
     */
    public void setUpperBound(org.apache.xmlbeans.XmlAnySimpleType upperBound)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlAnySimpleType target = null;
            target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().find_attribute_user(UPPERBOUND$4);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().add_attribute_user(UPPERBOUND$4);
            }
            target.set(upperBound);
        }
    }
    
    /**
     * Appends and returns a new empty "upperBound" attribute
     */
    public org.apache.xmlbeans.XmlAnySimpleType addNewUpperBound()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlAnySimpleType target = null;
            target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().add_attribute_user(UPPERBOUND$4);
            return target;
        }
    }
    
    /**
     * Unsets the "upperBound" attribute
     */
    public void unsetUpperBound()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(UPPERBOUND$4);
        }
    }
}
