/*
 * XML Type:  ExtensibleDocumented
 * Namespace: http://docs.oasis-open.org/wsn/2004/06/wsn-WS-Topics-1.2-draft-01.xsd
 * Java type: org.activemq.ws.xmlbeans.notification.topics.ExtensibleDocumented
 *
 * Automatically generated - do not modify.
 */
package org.activemq.ws.xmlbeans.notification.topics.impl;
/**
 * An XML ExtensibleDocumented(@http://docs.oasis-open.org/wsn/2004/06/wsn-WS-Topics-1.2-draft-01.xsd).
 *
 * This is a complex type.
 */
public class ExtensibleDocumentedImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.notification.topics.ExtensibleDocumented
{
    
    public ExtensibleDocumentedImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName DOCUMENTATION$0 = 
        new javax.xml.namespace.QName("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-Topics-1.2-draft-01.xsd", "documentation");
    
    
    /**
     * Gets the "documentation" element
     */
    public org.activemq.ws.xmlbeans.notification.topics.Documentation getDocumentation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.notification.topics.Documentation target = null;
            target = (org.activemq.ws.xmlbeans.notification.topics.Documentation)get_store().find_element_user(DOCUMENTATION$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "documentation" element
     */
    public boolean isSetDocumentation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DOCUMENTATION$0) != 0;
        }
    }
    
    /**
     * Sets the "documentation" element
     */
    public void setDocumentation(org.activemq.ws.xmlbeans.notification.topics.Documentation documentation)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.notification.topics.Documentation target = null;
            target = (org.activemq.ws.xmlbeans.notification.topics.Documentation)get_store().find_element_user(DOCUMENTATION$0, 0);
            if (target == null)
            {
                target = (org.activemq.ws.xmlbeans.notification.topics.Documentation)get_store().add_element_user(DOCUMENTATION$0);
            }
            target.set(documentation);
        }
    }
    
    /**
     * Appends and returns a new empty "documentation" element
     */
    public org.activemq.ws.xmlbeans.notification.topics.Documentation addNewDocumentation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.notification.topics.Documentation target = null;
            target = (org.activemq.ws.xmlbeans.notification.topics.Documentation)get_store().add_element_user(DOCUMENTATION$0);
            return target;
        }
    }
    
    /**
     * Unsets the "documentation" element
     */
    public void unsetDocumentation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DOCUMENTATION$0, 0);
        }
    }
}
