/*
 * XML Type:  calendarType
 * Namespace: http://www.bea.com/wli/worklist/xml
 * Java type: com.bea.wli.worklist.xml.CalendarType
 *
 * Automatically generated - do not modify.
 */
package com.bea.wli.worklist.xml.impl;
/**
 * An XML calendarType(@http://www.bea.com/wli/worklist/xml).
 *
 * This is a complex type.
 */
public class CalendarTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.bea.wli.worklist.xml.CalendarType
{
    
    public CalendarTypeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName NAME$0 = 
        new javax.xml.namespace.QName("http://www.bea.com/wli/worklist/xml", "name");
    private static final javax.xml.namespace.QName USERORGROUP$2 = 
        new javax.xml.namespace.QName("http://www.bea.com/wli/worklist/xml", "userOrGroup");
    
    
    /**
     * Gets the "name" element
     */
    public java.lang.String getName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "name" element
     */
    public org.apache.xmlbeans.XmlString xgetName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0);
            return target;
        }
    }
    
    /**
     * True if has "name" element
     */
    public boolean isSetName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(NAME$0) != 0;
        }
    }
    
    /**
     * Sets the "name" element
     */
    public void setName(java.lang.String name)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAME$0);
            }
            target.setStringValue(name);
        }
    }
    
    /**
     * Sets (as xml) the "name" element
     */
    public void xsetName(org.apache.xmlbeans.XmlString name)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NAME$0);
            }
            target.set(name);
        }
    }
    
    /**
     * Unsets the "name" element
     */
    public void unsetName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(NAME$0, 0);
        }
    }
    
    /**
     * Gets the "userOrGroup" element
     */
    public java.lang.String getUserOrGroup()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USERORGROUP$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "userOrGroup" element
     */
    public org.apache.xmlbeans.XmlString xgetUserOrGroup()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(USERORGROUP$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "userOrGroup" element
     */
    public boolean isSetUserOrGroup()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(USERORGROUP$2) != 0;
        }
    }
    
    /**
     * Sets the "userOrGroup" element
     */
    public void setUserOrGroup(java.lang.String userOrGroup)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USERORGROUP$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(USERORGROUP$2);
            }
            target.setStringValue(userOrGroup);
        }
    }
    
    /**
     * Sets (as xml) the "userOrGroup" element
     */
    public void xsetUserOrGroup(org.apache.xmlbeans.XmlString userOrGroup)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(USERORGROUP$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(USERORGROUP$2);
            }
            target.set(userOrGroup);
        }
    }
    
    /**
     * Unsets the "userOrGroup" element
     */
    public void unsetUserOrGroup()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(USERORGROUP$2, 0);
        }
    }
}
