/*
 * An XML document type.
 * Localname: xpath
 * Namespace: http://www.bea.com/2003/03/wli/tpm
 * Java type: com.bea.x2003.x03.wli.tpm.XpathDocument
 *
 * Automatically generated - do not modify.
 */
package com.bea.x2003.x03.wli.tpm.impl;
/**
 * A document containing one xpath(@http://www.bea.com/2003/03/wli/tpm) element.
 *
 * This is a complex type.
 */
public class XpathDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.bea.x2003.x03.wli.tpm.XpathDocument
{
    
    public XpathDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName XPATH$0 = 
        new javax.xml.namespace.QName("http://www.bea.com/2003/03/wli/tpm", "xpath");
    
    
    /**
     * Gets the "xpath" element
     */
    public org.apache.xmlbeans.XmlObject getXpath()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlObject target = null;
            target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(XPATH$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "xpath" element
     */
    public void setXpath(org.apache.xmlbeans.XmlObject xpath)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlObject target = null;
            target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(XPATH$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(XPATH$0);
            }
            target.set(xpath);
        }
    }
    
    /**
     * Appends and returns a new empty "xpath" element
     */
    public org.apache.xmlbeans.XmlObject addNewXpath()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlObject target = null;
            target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(XPATH$0);
            return target;
        }
    }
}
