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

net.opengis.sps.x10.impl.EstimatedToCDocumentImpl Maven / Gradle / Ivy

/*
 * An XML document type.
 * Localname: estimatedToC
 * Namespace: http://www.opengis.net/sps/1.0
 * Java type: net.opengis.sps.x10.EstimatedToCDocument
 *
 * Automatically generated - do not modify.
 */
package net.opengis.sps.x10.impl;
/**
 * A document containing one estimatedToC(@http://www.opengis.net/sps/1.0) element.
 *
 * This is a complex type.
 */
public class EstimatedToCDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.sps.x10.EstimatedToCDocument
{
    private static final long serialVersionUID = 1L;
    
    public EstimatedToCDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ESTIMATEDTOC$0 = 
        new javax.xml.namespace.QName("http://www.opengis.net/sps/1.0", "estimatedToC");
    
    
    /**
     * Gets the "estimatedToC" element
     */
    public net.opengis.sps.x10.EstimatedToCDocument.EstimatedToC getEstimatedToC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sps.x10.EstimatedToCDocument.EstimatedToC target = null;
            target = (net.opengis.sps.x10.EstimatedToCDocument.EstimatedToC)get_store().find_element_user(ESTIMATEDTOC$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "estimatedToC" element
     */
    public void setEstimatedToC(net.opengis.sps.x10.EstimatedToCDocument.EstimatedToC estimatedToC)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sps.x10.EstimatedToCDocument.EstimatedToC target = null;
            target = (net.opengis.sps.x10.EstimatedToCDocument.EstimatedToC)get_store().find_element_user(ESTIMATEDTOC$0, 0);
            if (target == null)
            {
                target = (net.opengis.sps.x10.EstimatedToCDocument.EstimatedToC)get_store().add_element_user(ESTIMATEDTOC$0);
            }
            target.set(estimatedToC);
        }
    }
    
    /**
     * Appends and returns a new empty "estimatedToC" element
     */
    public net.opengis.sps.x10.EstimatedToCDocument.EstimatedToC addNewEstimatedToC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sps.x10.EstimatedToCDocument.EstimatedToC target = null;
            target = (net.opengis.sps.x10.EstimatedToCDocument.EstimatedToC)get_store().add_element_user(ESTIMATEDTOC$0);
            return target;
        }
    }
    /**
     * An XML estimatedToC(@http://www.opengis.net/sps/1.0).
     *
     * This is a complex type.
     */
    public static class EstimatedToCImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.sps.x10.EstimatedToCDocument.EstimatedToC
    {
        private static final long serialVersionUID = 1L;
        
        public EstimatedToCImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName TIMEINSTANT$0 = 
            new javax.xml.namespace.QName("http://www.opengis.net/gml", "TimeInstant");
        
        
        /**
         * Gets the "TimeInstant" element
         */
        public net.opengis.gml.TimeInstantType getTimeInstant()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.gml.TimeInstantType target = null;
                target = (net.opengis.gml.TimeInstantType)get_store().find_element_user(TIMEINSTANT$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * Sets the "TimeInstant" element
         */
        public void setTimeInstant(net.opengis.gml.TimeInstantType timeInstant)
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.gml.TimeInstantType target = null;
                target = (net.opengis.gml.TimeInstantType)get_store().find_element_user(TIMEINSTANT$0, 0);
                if (target == null)
                {
                    target = (net.opengis.gml.TimeInstantType)get_store().add_element_user(TIMEINSTANT$0);
                }
                target.set(timeInstant);
            }
        }
        
        /**
         * Appends and returns a new empty "TimeInstant" element
         */
        public net.opengis.gml.TimeInstantType addNewTimeInstant()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.gml.TimeInstantType target = null;
                target = (net.opengis.gml.TimeInstantType)get_store().add_element_user(TIMEINSTANT$0);
                return target;
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy