/*
 * XML Type:  businessDateType
 * Namespace: http://www.bea.com/wli/worklist/xml
 * Java type: com.bea.wli.worklist.xml.BusinessDateType
 *
 * Automatically generated - do not modify.
 */
package com.bea.wli.worklist.xml.impl;
/**
 * An XML businessDateType(@http://www.bea.com/wli/worklist/xml).
 *
 * This is a complex type.
 */
public class BusinessDateTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.bea.wli.worklist.xml.BusinessDateType
{
    
    public BusinessDateTypeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName MONTH$0 = 
        new javax.xml.namespace.QName("http://www.bea.com/wli/worklist/xml", "month");
    private static final javax.xml.namespace.QName DAY$2 = 
        new javax.xml.namespace.QName("http://www.bea.com/wli/worklist/xml", "day");
    private static final javax.xml.namespace.QName HOUR$4 = 
        new javax.xml.namespace.QName("http://www.bea.com/wli/worklist/xml", "hour");
    private static final javax.xml.namespace.QName MIN$6 = 
        new javax.xml.namespace.QName("http://www.bea.com/wli/worklist/xml", "min");
    private static final javax.xml.namespace.QName CALENDAR$8 = 
        new javax.xml.namespace.QName("http://www.bea.com/wli/worklist/xml", "calendar");
    
    
    /**
     * Gets the "month" element
     */
    public int getMonth()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MONTH$0, 0);
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "month" element
     */
    public org.apache.xmlbeans.XmlInt xgetMonth()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(MONTH$0, 0);
            return target;
        }
    }
    
    /**
     * True if has "month" element
     */
    public boolean isSetMonth()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(MONTH$0) != 0;
        }
    }
    
    /**
     * Sets the "month" element
     */
    public void setMonth(int month)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MONTH$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MONTH$0);
            }
            target.setIntValue(month);
        }
    }
    
    /**
     * Sets (as xml) the "month" element
     */
    public void xsetMonth(org.apache.xmlbeans.XmlInt month)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(MONTH$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(MONTH$0);
            }
            target.set(month);
        }
    }
    
    /**
     * Unsets the "month" element
     */
    public void unsetMonth()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(MONTH$0, 0);
        }
    }
    
    /**
     * Gets the "day" element
     */
    public int getDay()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DAY$2, 0);
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "day" element
     */
    public org.apache.xmlbeans.XmlInt xgetDay()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(DAY$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "day" element
     */
    public boolean isSetDay()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DAY$2) != 0;
        }
    }
    
    /**
     * Sets the "day" element
     */
    public void setDay(int day)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DAY$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DAY$2);
            }
            target.setIntValue(day);
        }
    }
    
    /**
     * Sets (as xml) the "day" element
     */
    public void xsetDay(org.apache.xmlbeans.XmlInt day)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(DAY$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(DAY$2);
            }
            target.set(day);
        }
    }
    
    /**
     * Unsets the "day" element
     */
    public void unsetDay()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DAY$2, 0);
        }
    }
    
    /**
     * Gets the "hour" element
     */
    public int getHour()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HOUR$4, 0);
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "hour" element
     */
    public org.apache.xmlbeans.XmlInt xgetHour()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(HOUR$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "hour" element
     */
    public boolean isSetHour()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(HOUR$4) != 0;
        }
    }
    
    /**
     * Sets the "hour" element
     */
    public void setHour(int hour)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HOUR$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(HOUR$4);
            }
            target.setIntValue(hour);
        }
    }
    
    /**
     * Sets (as xml) the "hour" element
     */
    public void xsetHour(org.apache.xmlbeans.XmlInt hour)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(HOUR$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(HOUR$4);
            }
            target.set(hour);
        }
    }
    
    /**
     * Unsets the "hour" element
     */
    public void unsetHour()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(HOUR$4, 0);
        }
    }
    
    /**
     * Gets the "min" element
     */
    public int getMin()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MIN$6, 0);
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "min" element
     */
    public org.apache.xmlbeans.XmlInt xgetMin()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(MIN$6, 0);
            return target;
        }
    }
    
    /**
     * True if has "min" element
     */
    public boolean isSetMin()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(MIN$6) != 0;
        }
    }
    
    /**
     * Sets the "min" element
     */
    public void setMin(int min)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MIN$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MIN$6);
            }
            target.setIntValue(min);
        }
    }
    
    /**
     * Sets (as xml) the "min" element
     */
    public void xsetMin(org.apache.xmlbeans.XmlInt min)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(MIN$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(MIN$6);
            }
            target.set(min);
        }
    }
    
    /**
     * Unsets the "min" element
     */
    public void unsetMin()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(MIN$6, 0);
        }
    }
    
    /**
     * Gets the "calendar" element
     */
    public com.bea.wli.worklist.xml.CalendarType getCalendar()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.bea.wli.worklist.xml.CalendarType target = null;
            target = (com.bea.wli.worklist.xml.CalendarType)get_store().find_element_user(CALENDAR$8, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "calendar" element
     */
    public boolean isSetCalendar()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CALENDAR$8) != 0;
        }
    }
    
    /**
     * Sets the "calendar" element
     */
    public void setCalendar(com.bea.wli.worklist.xml.CalendarType calendar)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.bea.wli.worklist.xml.CalendarType target = null;
            target = (com.bea.wli.worklist.xml.CalendarType)get_store().find_element_user(CALENDAR$8, 0);
            if (target == null)
            {
                target = (com.bea.wli.worklist.xml.CalendarType)get_store().add_element_user(CALENDAR$8);
            }
            target.set(calendar);
        }
    }
    
    /**
     * Appends and returns a new empty "calendar" element
     */
    public com.bea.wli.worklist.xml.CalendarType addNewCalendar()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.bea.wli.worklist.xml.CalendarType target = null;
            target = (com.bea.wli.worklist.xml.CalendarType)get_store().add_element_user(CALENDAR$8);
            return target;
        }
    }
    
    /**
     * Unsets the "calendar" element
     */
    public void unsetCalendar()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CALENDAR$8, 0);
        }
    }
}
