/*
 * An XML document type.
 * Localname: MembershipContentRule
 * Namespace: http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd
 * Java type: org.activemq.ws.xmlbeans.servicegroup.MembershipContentRuleDocument
 *
 * Automatically generated - do not modify.
 */
package org.activemq.ws.xmlbeans.servicegroup.impl;
/**
 * A document containing one MembershipContentRule(@http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd) element.
 *
 * This is a complex type.
 */
public class MembershipContentRuleDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.servicegroup.MembershipContentRuleDocument
{
    
    public MembershipContentRuleDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName MEMBERSHIPCONTENTRULE$0 = 
        new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd", "MembershipContentRule");
    
    
    /**
     * Gets the "MembershipContentRule" element
     */
    public org.activemq.ws.xmlbeans.servicegroup.MembershipContentRuleDocument.MembershipContentRule getMembershipContentRule()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.servicegroup.MembershipContentRuleDocument.MembershipContentRule target = null;
            target = (org.activemq.ws.xmlbeans.servicegroup.MembershipContentRuleDocument.MembershipContentRule)get_store().find_element_user(MEMBERSHIPCONTENTRULE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "MembershipContentRule" element
     */
    public void setMembershipContentRule(org.activemq.ws.xmlbeans.servicegroup.MembershipContentRuleDocument.MembershipContentRule membershipContentRule)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.servicegroup.MembershipContentRuleDocument.MembershipContentRule target = null;
            target = (org.activemq.ws.xmlbeans.servicegroup.MembershipContentRuleDocument.MembershipContentRule)get_store().find_element_user(MEMBERSHIPCONTENTRULE$0, 0);
            if (target == null)
            {
                target = (org.activemq.ws.xmlbeans.servicegroup.MembershipContentRuleDocument.MembershipContentRule)get_store().add_element_user(MEMBERSHIPCONTENTRULE$0);
            }
            target.set(membershipContentRule);
        }
    }
    
    /**
     * Appends and returns a new empty "MembershipContentRule" element
     */
    public org.activemq.ws.xmlbeans.servicegroup.MembershipContentRuleDocument.MembershipContentRule addNewMembershipContentRule()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.servicegroup.MembershipContentRuleDocument.MembershipContentRule target = null;
            target = (org.activemq.ws.xmlbeans.servicegroup.MembershipContentRuleDocument.MembershipContentRule)get_store().add_element_user(MEMBERSHIPCONTENTRULE$0);
            return target;
        }
    }
    /**
     * An XML MembershipContentRule(@http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd).
     *
     * This is a complex type.
     */
    public static class MembershipContentRuleImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.servicegroup.MembershipContentRuleDocument.MembershipContentRule
    {
        
        public MembershipContentRuleImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName MEMBERINTERFACE$0 = 
            new javax.xml.namespace.QName("", "MemberInterface");
        private static final javax.xml.namespace.QName CONTENTELEMENTS$2 = 
            new javax.xml.namespace.QName("", "ContentElements");
        
        
        /**
         * Gets the "MemberInterface" attribute
         */
        public javax.xml.namespace.QName getMemberInterface()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MEMBERINTERFACE$0);
                if (target == null)
                {
                    return null;
                }
                return target.getQNameValue();
            }
        }
        
        /**
         * Gets (as xml) the "MemberInterface" attribute
         */
        public org.apache.xmlbeans.XmlQName xgetMemberInterface()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlQName target = null;
                target = (org.apache.xmlbeans.XmlQName)get_store().find_attribute_user(MEMBERINTERFACE$0);
                return target;
            }
        }
        
        /**
         * True if has "MemberInterface" attribute
         */
        public boolean isSetMemberInterface()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(MEMBERINTERFACE$0) != null;
            }
        }
        
        /**
         * Sets the "MemberInterface" attribute
         */
        public void setMemberInterface(javax.xml.namespace.QName memberInterface)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MEMBERINTERFACE$0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(MEMBERINTERFACE$0);
                }
                target.setQNameValue(memberInterface);
            }
        }
        
        /**
         * Sets (as xml) the "MemberInterface" attribute
         */
        public void xsetMemberInterface(org.apache.xmlbeans.XmlQName memberInterface)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlQName target = null;
                target = (org.apache.xmlbeans.XmlQName)get_store().find_attribute_user(MEMBERINTERFACE$0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlQName)get_store().add_attribute_user(MEMBERINTERFACE$0);
                }
                target.set(memberInterface);
            }
        }
        
        /**
         * Unsets the "MemberInterface" attribute
         */
        public void unsetMemberInterface()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(MEMBERINTERFACE$0);
            }
        }
        
        /**
         * Gets the "ContentElements" attribute
         */
        public java.util.List getContentElements()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CONTENTELEMENTS$2);
                if (target == null)
                {
                    return null;
                }
                return target.getListValue();
            }
        }
        
        /**
         * Gets (as xml) the "ContentElements" attribute
         */
        public org.activemq.ws.xmlbeans.servicegroup.ContentElementsType xgetContentElements()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.activemq.ws.xmlbeans.servicegroup.ContentElementsType target = null;
                target = (org.activemq.ws.xmlbeans.servicegroup.ContentElementsType)get_store().find_attribute_user(CONTENTELEMENTS$2);
                return target;
            }
        }
        
        /**
         * Sets the "ContentElements" attribute
         */
        public void setContentElements(java.util.List contentElements)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CONTENTELEMENTS$2);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CONTENTELEMENTS$2);
                }
                target.setListValue(contentElements);
            }
        }
        
        /**
         * Sets (as xml) the "ContentElements" attribute
         */
        public void xsetContentElements(org.activemq.ws.xmlbeans.servicegroup.ContentElementsType contentElements)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.activemq.ws.xmlbeans.servicegroup.ContentElementsType target = null;
                target = (org.activemq.ws.xmlbeans.servicegroup.ContentElementsType)get_store().find_attribute_user(CONTENTELEMENTS$2);
                if (target == null)
                {
                    target = (org.activemq.ws.xmlbeans.servicegroup.ContentElementsType)get_store().add_attribute_user(CONTENTELEMENTS$2);
                }
                target.set(contentElements);
            }
        }
    }
}
