/*
 * An XML document type.
 * Localname: TopicExpression
 * Namespace: http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd
 * Java type: org.activemq.ws.xmlbeans.notification.base.TopicExpressionDocument
 *
 * Automatically generated - do not modify.
 */
package org.activemq.ws.xmlbeans.notification.base.impl;
/**
 * A document containing one TopicExpression(@http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd) element.
 *
 * This is a complex type.
 */
public class TopicExpressionDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.notification.base.TopicExpressionDocument
{
    
    public TopicExpressionDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName TOPICEXPRESSION$0 = 
        new javax.xml.namespace.QName("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "TopicExpression");
    
    
    /**
     * Gets the "TopicExpression" element
     */
    public org.activemq.ws.xmlbeans.notification.base.TopicExpressionType getTopicExpression()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.notification.base.TopicExpressionType target = null;
            target = (org.activemq.ws.xmlbeans.notification.base.TopicExpressionType)get_store().find_element_user(TOPICEXPRESSION$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "TopicExpression" element
     */
    public void setTopicExpression(org.activemq.ws.xmlbeans.notification.base.TopicExpressionType topicExpression)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.notification.base.TopicExpressionType target = null;
            target = (org.activemq.ws.xmlbeans.notification.base.TopicExpressionType)get_store().find_element_user(TOPICEXPRESSION$0, 0);
            if (target == null)
            {
                target = (org.activemq.ws.xmlbeans.notification.base.TopicExpressionType)get_store().add_element_user(TOPICEXPRESSION$0);
            }
            target.set(topicExpression);
        }
    }
    
    /**
     * Appends and returns a new empty "TopicExpression" element
     */
    public org.activemq.ws.xmlbeans.notification.base.TopicExpressionType addNewTopicExpression()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.notification.base.TopicExpressionType target = null;
            target = (org.activemq.ws.xmlbeans.notification.base.TopicExpressionType)get_store().add_element_user(TOPICEXPRESSION$0);
            return target;
        }
    }
}
