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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy