/*
 * An XML document type.
 * Localname: input-data
 * Namespace: http://www.bea.com/Worklist_Sample/InputData.xsd
 * Java type: com.bea.worklistSample.inputData.InputDataDocument
 *
 * Automatically generated - do not modify.
 */
package com.bea.worklistSample.inputData.impl;
/**
 * A document containing one input-data(@http://www.bea.com/Worklist_Sample/InputData.xsd) element.
 *
 * This is a complex type.
 */
public class InputDataDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.bea.worklistSample.inputData.InputDataDocument
{
    
    public InputDataDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName INPUTDATA$0 = 
        new javax.xml.namespace.QName("http://www.bea.com/Worklist_Sample/InputData.xsd", "input-data");
    
    
    /**
     * Gets the "input-data" element
     */
    public com.bea.worklistSample.inputData.InputDataType getInputData()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.bea.worklistSample.inputData.InputDataType target = null;
            target = (com.bea.worklistSample.inputData.InputDataType)get_store().find_element_user(INPUTDATA$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "input-data" element
     */
    public void setInputData(com.bea.worklistSample.inputData.InputDataType inputData)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.bea.worklistSample.inputData.InputDataType target = null;
            target = (com.bea.worklistSample.inputData.InputDataType)get_store().find_element_user(INPUTDATA$0, 0);
            if (target == null)
            {
                target = (com.bea.worklistSample.inputData.InputDataType)get_store().add_element_user(INPUTDATA$0);
            }
            target.set(inputData);
        }
    }
    
    /**
     * Appends and returns a new empty "input-data" element
     */
    public com.bea.worklistSample.inputData.InputDataType addNewInputData()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.bea.worklistSample.inputData.InputDataType target = null;
            target = (com.bea.worklistSample.inputData.InputDataType)get_store().add_element_user(INPUTDATA$0);
            return target;
        }
    }
}
