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

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

The newest version!
/*
 * An XML document type.
 * Localname: QuantityRange
 * Namespace: http://www.opengis.net/swe/2.0
 * Java type: net.opengis.swe.x20.QuantityRangeDocument
 *
 * Automatically generated - do not modify.
 */
package net.opengis.swe.x20.impl;
/**
 * A document containing one QuantityRange(@http://www.opengis.net/swe/2.0) element.
 *
 * This is a complex type.
 */
public class QuantityRangeDocumentImpl extends net.opengis.swe.x20.impl.AbstractSimpleComponentDocumentImpl implements net.opengis.swe.x20.QuantityRangeDocument
{
    private static final long serialVersionUID = 1L;
    
    public QuantityRangeDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName QUANTITYRANGE$0 = 
        new javax.xml.namespace.QName("http://www.opengis.net/swe/2.0", "QuantityRange");
    
    
    /**
     * Gets the "QuantityRange" element
     */
    public net.opengis.swe.x20.QuantityRangeType getQuantityRange()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.swe.x20.QuantityRangeType target = null;
            target = (net.opengis.swe.x20.QuantityRangeType)get_store().find_element_user(QUANTITYRANGE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "QuantityRange" element
     */
    public void setQuantityRange(net.opengis.swe.x20.QuantityRangeType quantityRange)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.swe.x20.QuantityRangeType target = null;
            target = (net.opengis.swe.x20.QuantityRangeType)get_store().find_element_user(QUANTITYRANGE$0, 0);
            if (target == null)
            {
                target = (net.opengis.swe.x20.QuantityRangeType)get_store().add_element_user(QUANTITYRANGE$0);
            }
            target.set(quantityRange);
        }
    }
    
    /**
     * Appends and returns a new empty "QuantityRange" element
     */
    public net.opengis.swe.x20.QuantityRangeType addNewQuantityRange()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.swe.x20.QuantityRangeType target = null;
            target = (net.opengis.swe.x20.QuantityRangeType)get_store().add_element_user(QUANTITYRANGE$0);
            return target;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy