/*
 * An XML document type.
 * Localname: SupportedDialect
 * Namespace: http://schemas.xmlsoap.org/ws/2004/08/eventing
 * Java type: org.codehaus.activemq.ws.schema.eventing.SupportedDialectDocument
 *
 * Automatically generated - do not modify.
 */
package org.codehaus.activemq.ws.schema.eventing.impl;

/**
 * A document containing one SupportedDialect(@http://schemas.xmlsoap.org/ws/2004/08/eventing) element.
 * <p/>
 * This is a complex type.
 */
public class SupportedDialectDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.codehaus.activemq.ws.schema.eventing.SupportedDialectDocument {

    public SupportedDialectDocumentImpl(org.apache.xmlbeans.SchemaType sType) {
        super(sType);
    }

    private static final javax.xml.namespace.QName SUPPORTEDDIALECT$0 =
            new javax.xml.namespace.QName("http://schemas.xmlsoap.org/ws/2004/08/eventing", "SupportedDialect");


    /**
     * Gets the "SupportedDialect" element
     */
    public java.lang.String getSupportedDialect() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue) get_store().find_element_user(SUPPORTEDDIALECT$0, 0);
            if (target == null) {
                return null;
            }
            return target.getStringValue();
        }
    }

    /**
     * Gets (as xml) the "SupportedDialect" element
     */
    public org.apache.xmlbeans.XmlAnyURI xgetSupportedDialect() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlAnyURI target = null;
            target = (org.apache.xmlbeans.XmlAnyURI) get_store().find_element_user(SUPPORTEDDIALECT$0, 0);
            return target;
        }
    }

    /**
     * Sets the "SupportedDialect" element
     */
    public void setSupportedDialect(java.lang.String supportedDialect) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue) get_store().find_element_user(SUPPORTEDDIALECT$0, 0);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue) get_store().add_element_user(SUPPORTEDDIALECT$0);
            }
            target.setStringValue(supportedDialect);
        }
    }

    /**
     * Sets (as xml) the "SupportedDialect" element
     */
    public void xsetSupportedDialect(org.apache.xmlbeans.XmlAnyURI supportedDialect) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlAnyURI target = null;
            target = (org.apache.xmlbeans.XmlAnyURI) get_store().find_element_user(SUPPORTEDDIALECT$0, 0);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlAnyURI) get_store().add_element_user(SUPPORTEDDIALECT$0);
            }
            target.set(supportedDialect);
        }
    }
}
