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

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

There is a newer version: 2.7.0
Show newest version
/*
 * An XML document type.
 * Localname: Contents
 * Namespace: http://www.opengis.net/sos/1.0
 * Java type: net.opengis.sos.x10.ContentsDocument
 *
 * Automatically generated - do not modify.
 */
package net.opengis.sos.x10.impl;
/**
 * A document containing one Contents(@http://www.opengis.net/sos/1.0) element.
 *
 * This is a complex type.
 */
public class ContentsDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.sos.x10.ContentsDocument
{
    private static final long serialVersionUID = 1L;
    
    public ContentsDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CONTENTS$0 = 
        new javax.xml.namespace.QName("http://www.opengis.net/sos/1.0", "Contents");
    
    
    /**
     * Gets the "Contents" element
     */
    public net.opengis.sos.x10.ContentsDocument.Contents getContents()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sos.x10.ContentsDocument.Contents target = null;
            target = (net.opengis.sos.x10.ContentsDocument.Contents)get_store().find_element_user(CONTENTS$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "Contents" element
     */
    public void setContents(net.opengis.sos.x10.ContentsDocument.Contents contents)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sos.x10.ContentsDocument.Contents target = null;
            target = (net.opengis.sos.x10.ContentsDocument.Contents)get_store().find_element_user(CONTENTS$0, 0);
            if (target == null)
            {
                target = (net.opengis.sos.x10.ContentsDocument.Contents)get_store().add_element_user(CONTENTS$0);
            }
            target.set(contents);
        }
    }
    
    /**
     * Appends and returns a new empty "Contents" element
     */
    public net.opengis.sos.x10.ContentsDocument.Contents addNewContents()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sos.x10.ContentsDocument.Contents target = null;
            target = (net.opengis.sos.x10.ContentsDocument.Contents)get_store().add_element_user(CONTENTS$0);
            return target;
        }
    }
    /**
     * An XML Contents(@http://www.opengis.net/sos/1.0).
     *
     * This is a complex type.
     */
    public static class ContentsImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.sos.x10.ContentsDocument.Contents
    {
        private static final long serialVersionUID = 1L;
        
        public ContentsImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName OBSERVATIONOFFERINGLIST$0 = 
            new javax.xml.namespace.QName("http://www.opengis.net/sos/1.0", "ObservationOfferingList");
        
        
        /**
         * Gets the "ObservationOfferingList" element
         */
        public net.opengis.sos.x10.ContentsDocument.Contents.ObservationOfferingList getObservationOfferingList()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sos.x10.ContentsDocument.Contents.ObservationOfferingList target = null;
                target = (net.opengis.sos.x10.ContentsDocument.Contents.ObservationOfferingList)get_store().find_element_user(OBSERVATIONOFFERINGLIST$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * Sets the "ObservationOfferingList" element
         */
        public void setObservationOfferingList(net.opengis.sos.x10.ContentsDocument.Contents.ObservationOfferingList observationOfferingList)
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sos.x10.ContentsDocument.Contents.ObservationOfferingList target = null;
                target = (net.opengis.sos.x10.ContentsDocument.Contents.ObservationOfferingList)get_store().find_element_user(OBSERVATIONOFFERINGLIST$0, 0);
                if (target == null)
                {
                    target = (net.opengis.sos.x10.ContentsDocument.Contents.ObservationOfferingList)get_store().add_element_user(OBSERVATIONOFFERINGLIST$0);
                }
                target.set(observationOfferingList);
            }
        }
        
        /**
         * Appends and returns a new empty "ObservationOfferingList" element
         */
        public net.opengis.sos.x10.ContentsDocument.Contents.ObservationOfferingList addNewObservationOfferingList()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sos.x10.ContentsDocument.Contents.ObservationOfferingList target = null;
                target = (net.opengis.sos.x10.ContentsDocument.Contents.ObservationOfferingList)get_store().add_element_user(OBSERVATIONOFFERINGLIST$0);
                return target;
            }
        }
        /**
         * An XML ObservationOfferingList(@http://www.opengis.net/sos/1.0).
         *
         * This is a complex type.
         */
        public static class ObservationOfferingListImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.sos.x10.ContentsDocument.Contents.ObservationOfferingList
        {
            private static final long serialVersionUID = 1L;
            
            public ObservationOfferingListImpl(org.apache.xmlbeans.SchemaType sType)
            {
                super(sType);
            }
            
            private static final javax.xml.namespace.QName OBSERVATIONOFFERING$0 = 
                new javax.xml.namespace.QName("http://www.opengis.net/sos/1.0", "ObservationOffering");
            
            
            /**
             * Gets array of all "ObservationOffering" elements
             */
            public net.opengis.sos.x10.ObservationOfferingType[] getObservationOfferingArray()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    java.util.List targetList = new java.util.ArrayList();
                    get_store().find_all_element_users(OBSERVATIONOFFERING$0, targetList);
                    net.opengis.sos.x10.ObservationOfferingType[] result = new net.opengis.sos.x10.ObservationOfferingType[targetList.size()];
                    targetList.toArray(result);
                    return result;
                }
            }
            
            /**
             * Gets ith "ObservationOffering" element
             */
            public net.opengis.sos.x10.ObservationOfferingType getObservationOfferingArray(int i)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    net.opengis.sos.x10.ObservationOfferingType target = null;
                    target = (net.opengis.sos.x10.ObservationOfferingType)get_store().find_element_user(OBSERVATIONOFFERING$0, i);
                    if (target == null)
                    {
                      throw new IndexOutOfBoundsException();
                    }
                    return target;
                }
            }
            
            /**
             * Returns number of "ObservationOffering" element
             */
            public int sizeOfObservationOfferingArray()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    return get_store().count_elements(OBSERVATIONOFFERING$0);
                }
            }
            
            /**
             * Sets array of all "ObservationOffering" element
             */
            public void setObservationOfferingArray(net.opengis.sos.x10.ObservationOfferingType[] observationOfferingArray)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    arraySetterHelper(observationOfferingArray, OBSERVATIONOFFERING$0);
                }
            }
            
            /**
             * Sets ith "ObservationOffering" element
             */
            public void setObservationOfferingArray(int i, net.opengis.sos.x10.ObservationOfferingType observationOffering)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    net.opengis.sos.x10.ObservationOfferingType target = null;
                    target = (net.opengis.sos.x10.ObservationOfferingType)get_store().find_element_user(OBSERVATIONOFFERING$0, i);
                    if (target == null)
                    {
                      throw new IndexOutOfBoundsException();
                    }
                    target.set(observationOffering);
                }
            }
            
            /**
             * Inserts and returns a new empty value (as xml) as the ith "ObservationOffering" element
             */
            public net.opengis.sos.x10.ObservationOfferingType insertNewObservationOffering(int i)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    net.opengis.sos.x10.ObservationOfferingType target = null;
                    target = (net.opengis.sos.x10.ObservationOfferingType)get_store().insert_element_user(OBSERVATIONOFFERING$0, i);
                    return target;
                }
            }
            
            /**
             * Appends and returns a new empty value (as xml) as the last "ObservationOffering" element
             */
            public net.opengis.sos.x10.ObservationOfferingType addNewObservationOffering()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    net.opengis.sos.x10.ObservationOfferingType target = null;
                    target = (net.opengis.sos.x10.ObservationOfferingType)get_store().add_element_user(OBSERVATIONOFFERING$0);
                    return target;
                }
            }
            
            /**
             * Removes the ith "ObservationOffering" element
             */
            public void removeObservationOffering(int i)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    get_store().remove_element(OBSERVATIONOFFERING$0, i);
                }
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy