All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.opengis.wns.x00.impl.CommunicationMessageDocumentImpl Maven / Gradle / Ivy

There is a newer version: 2.7.0
Show newest version
/*
 * An XML document type.
 * Localname: CommunicationMessage
 * Namespace: http://www.opengis.net/wns/0.0
 * Java type: net.opengis.wns.x00.CommunicationMessageDocument
 *
 * Automatically generated - do not modify.
 */
package net.opengis.wns.x00.impl;
/**
 * A document containing one CommunicationMessage(@http://www.opengis.net/wns/0.0) element.
 *
 * This is a complex type.
 */
public class CommunicationMessageDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.wns.x00.CommunicationMessageDocument
{
    private static final long serialVersionUID = 1L;
    
    public CommunicationMessageDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName COMMUNICATIONMESSAGE$0 = 
        new javax.xml.namespace.QName("http://www.opengis.net/wns/0.0", "CommunicationMessage");
    
    
    /**
     * Gets the "CommunicationMessage" element
     */
    public net.opengis.wns.x00.CommunicationMessageType getCommunicationMessage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.wns.x00.CommunicationMessageType target = null;
            target = (net.opengis.wns.x00.CommunicationMessageType)get_store().find_element_user(COMMUNICATIONMESSAGE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "CommunicationMessage" element
     */
    public void setCommunicationMessage(net.opengis.wns.x00.CommunicationMessageType communicationMessage)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.wns.x00.CommunicationMessageType target = null;
            target = (net.opengis.wns.x00.CommunicationMessageType)get_store().find_element_user(COMMUNICATIONMESSAGE$0, 0);
            if (target == null)
            {
                target = (net.opengis.wns.x00.CommunicationMessageType)get_store().add_element_user(COMMUNICATIONMESSAGE$0);
            }
            target.set(communicationMessage);
        }
    }
    
    /**
     * Appends and returns a new empty "CommunicationMessage" element
     */
    public net.opengis.wns.x00.CommunicationMessageType addNewCommunicationMessage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.wns.x00.CommunicationMessageType target = null;
            target = (net.opengis.wns.x00.CommunicationMessageType)get_store().add_element_user(COMMUNICATIONMESSAGE$0);
            return target;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy