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

net.opengis.swe.x20.impl.DataStreamDocumentImpl Maven / Gradle / Ivy

/*
 * An XML document type.
 * Localname: DataStream
 * Namespace: http://www.opengis.net/swe/2.0
 * Java type: net.opengis.swe.x20.DataStreamDocument
 *
 * Automatically generated - do not modify.
 */
package net.opengis.swe.x20.impl;
/**
 * A document containing one DataStream(@http://www.opengis.net/swe/2.0) element.
 *
 * This is a complex type.
 */
public class DataStreamDocumentImpl extends net.opengis.swe.x20.impl.AbstractSWEIdentifiableDocumentImpl implements net.opengis.swe.x20.DataStreamDocument
{
    private static final long serialVersionUID = 1L;
    
    public DataStreamDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName DATASTREAM$0 = 
        new javax.xml.namespace.QName("http://www.opengis.net/swe/2.0", "DataStream");
    
    
    /**
     * Gets the "DataStream" element
     */
    public net.opengis.swe.x20.DataStreamType getDataStream()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.swe.x20.DataStreamType target = null;
            target = (net.opengis.swe.x20.DataStreamType)get_store().find_element_user(DATASTREAM$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "DataStream" element
     */
    public void setDataStream(net.opengis.swe.x20.DataStreamType dataStream)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.swe.x20.DataStreamType target = null;
            target = (net.opengis.swe.x20.DataStreamType)get_store().find_element_user(DATASTREAM$0, 0);
            if (target == null)
            {
                target = (net.opengis.swe.x20.DataStreamType)get_store().add_element_user(DATASTREAM$0);
            }
            target.set(dataStream);
        }
    }
    
    /**
     * Appends and returns a new empty "DataStream" element
     */
    public net.opengis.swe.x20.DataStreamType addNewDataStream()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.swe.x20.DataStreamType target = null;
            target = (net.opengis.swe.x20.DataStreamType)get_store().add_element_user(DATASTREAM$0);
            return target;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy