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

net.opengis.sos.x10.impl.InsertObservationDocumentImpl Maven / Gradle / Ivy

There is a newer version: 2.7.0
Show newest version
/*
 * An XML document type.
 * Localname: InsertObservation
 * Namespace: http://www.opengis.net/sos/1.0
 * Java type: net.opengis.sos.x10.InsertObservationDocument
 *
 * Automatically generated - do not modify.
 */
package net.opengis.sos.x10.impl;
/**
 * A document containing one InsertObservation(@http://www.opengis.net/sos/1.0) element.
 *
 * This is a complex type.
 */
public class InsertObservationDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.sos.x10.InsertObservationDocument
{
    private static final long serialVersionUID = 1L;
    
    public InsertObservationDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName INSERTOBSERVATION$0 = 
        new javax.xml.namespace.QName("http://www.opengis.net/sos/1.0", "InsertObservation");
    
    
    /**
     * Gets the "InsertObservation" element
     */
    public net.opengis.sos.x10.InsertObservationDocument.InsertObservation getInsertObservation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sos.x10.InsertObservationDocument.InsertObservation target = null;
            target = (net.opengis.sos.x10.InsertObservationDocument.InsertObservation)get_store().find_element_user(INSERTOBSERVATION$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "InsertObservation" element
     */
    public void setInsertObservation(net.opengis.sos.x10.InsertObservationDocument.InsertObservation insertObservation)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sos.x10.InsertObservationDocument.InsertObservation target = null;
            target = (net.opengis.sos.x10.InsertObservationDocument.InsertObservation)get_store().find_element_user(INSERTOBSERVATION$0, 0);
            if (target == null)
            {
                target = (net.opengis.sos.x10.InsertObservationDocument.InsertObservation)get_store().add_element_user(INSERTOBSERVATION$0);
            }
            target.set(insertObservation);
        }
    }
    
    /**
     * Appends and returns a new empty "InsertObservation" element
     */
    public net.opengis.sos.x10.InsertObservationDocument.InsertObservation addNewInsertObservation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sos.x10.InsertObservationDocument.InsertObservation target = null;
            target = (net.opengis.sos.x10.InsertObservationDocument.InsertObservation)get_store().add_element_user(INSERTOBSERVATION$0);
            return target;
        }
    }
    /**
     * An XML InsertObservation(@http://www.opengis.net/sos/1.0).
     *
     * This is a complex type.
     */
    public static class InsertObservationImpl extends net.opengis.sos.x10.impl.RequestBaseTypeImpl implements net.opengis.sos.x10.InsertObservationDocument.InsertObservation
    {
        private static final long serialVersionUID = 1L;
        
        public InsertObservationImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName ASSIGNEDSENSORID$0 = 
            new javax.xml.namespace.QName("http://www.opengis.net/sos/1.0", "AssignedSensorId");
        private static final javax.xml.namespace.QName OBSERVATION$2 = 
            new javax.xml.namespace.QName("http://www.opengis.net/om/1.0", "Observation");
        private static final org.apache.xmlbeans.QNameSet OBSERVATION$3 = org.apache.xmlbeans.QNameSet.forArray( new javax.xml.namespace.QName[] { 
            new javax.xml.namespace.QName("http://www.opengis.net/om/1.0", "ComplexObservation"),
            new javax.xml.namespace.QName("http://www.opengis.net/om/1.0", "Measurement"),
            new javax.xml.namespace.QName("http://www.opengis.net/om/1.0", "CategoryObservation"),
            new javax.xml.namespace.QName("http://www.opengis.net/om/1.0", "TemporalObservation"),
            new javax.xml.namespace.QName("http://www.opengis.net/om/1.0", "CountObservation"),
            new javax.xml.namespace.QName("http://www.opengis.net/om/1.0", "TruthObservation"),
            new javax.xml.namespace.QName("http://www.opengis.net/om/1.0", "GeometryObservation"),
            new javax.xml.namespace.QName("http://www.opengis.net/om/1.0", "Observation"),
        });
        
        
        /**
         * Gets the "AssignedSensorId" element
         */
        public java.lang.String getAssignedSensorId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ASSIGNEDSENSORID$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "AssignedSensorId" element
         */
        public org.apache.xmlbeans.XmlAnyURI xgetAssignedSensorId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlAnyURI target = null;
                target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(ASSIGNEDSENSORID$0, 0);
                return target;
            }
        }
        
        /**
         * Sets the "AssignedSensorId" element
         */
        public void setAssignedSensorId(java.lang.String assignedSensorId)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ASSIGNEDSENSORID$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ASSIGNEDSENSORID$0);
                }
                target.setStringValue(assignedSensorId);
            }
        }
        
        /**
         * Sets (as xml) the "AssignedSensorId" element
         */
        public void xsetAssignedSensorId(org.apache.xmlbeans.XmlAnyURI assignedSensorId)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlAnyURI target = null;
                target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(ASSIGNEDSENSORID$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_element_user(ASSIGNEDSENSORID$0);
                }
                target.set(assignedSensorId);
            }
        }
        
        /**
         * Gets the "Observation" element
         */
        public net.opengis.om.x10.ObservationType getObservation()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.om.x10.ObservationType target = null;
                target = (net.opengis.om.x10.ObservationType)get_store().find_element_user(OBSERVATION$3, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * Sets the "Observation" element
         */
        public void setObservation(net.opengis.om.x10.ObservationType observation)
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.om.x10.ObservationType target = null;
                target = (net.opengis.om.x10.ObservationType)get_store().find_element_user(OBSERVATION$3, 0);
                if (target == null)
                {
                    target = (net.opengis.om.x10.ObservationType)get_store().add_element_user(OBSERVATION$2);
                }
                target.set(observation);
            }
        }
        
        /**
         * Appends and returns a new empty "Observation" element
         */
        public net.opengis.om.x10.ObservationType addNewObservation()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.om.x10.ObservationType target = null;
                target = (net.opengis.om.x10.ObservationType)get_store().add_element_user(OBSERVATION$2);
                return target;
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy