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

net.opengis.ows.x11.impl.HTTPDocumentImpl Maven / Gradle / Ivy

The newest version!
/*
 * An XML document type.
 * Localname: HTTP
 * Namespace: http://www.opengis.net/ows/1.1
 * Java type: net.opengis.ows.x11.HTTPDocument
 *
 * Automatically generated - do not modify.
 */
package net.opengis.ows.x11.impl;

import javax.xml.namespace.QName;
import org.apache.xmlbeans.QNameSet;
import org.apache.xmlbeans.XmlObject;

/**
 * A document containing one HTTP(@http://www.opengis.net/ows/1.1) element.
 *
 * This is a complex type.
 */
public class HTTPDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.ows.x11.HTTPDocument {
    private static final long serialVersionUID = 1L;

    public HTTPDocumentImpl(org.apache.xmlbeans.SchemaType sType) {
        super(sType);
    }

    private static final QName[] PROPERTY_QNAME = {
        new QName("http://www.opengis.net/ows/1.1", "HTTP"),
    };


    /**
     * Gets the "HTTP" element
     */
    @Override
    public net.opengis.ows.x11.HTTPDocument.HTTP getHTTP() {
        synchronized (monitor()) {
            check_orphaned();
            net.opengis.ows.x11.HTTPDocument.HTTP target = null;
            target = (net.opengis.ows.x11.HTTPDocument.HTTP)get_store().find_element_user(PROPERTY_QNAME[0], 0);
            return (target == null) ? null : target;
        }
    }

    /**
     * Sets the "HTTP" element
     */
    @Override
    public void setHTTP(net.opengis.ows.x11.HTTPDocument.HTTP http) {
        generatedSetterHelperImpl(http, PROPERTY_QNAME[0], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }

    /**
     * Appends and returns a new empty "HTTP" element
     */
    @Override
    public net.opengis.ows.x11.HTTPDocument.HTTP addNewHTTP() {
        synchronized (monitor()) {
            check_orphaned();
            net.opengis.ows.x11.HTTPDocument.HTTP target = null;
            target = (net.opengis.ows.x11.HTTPDocument.HTTP)get_store().add_element_user(PROPERTY_QNAME[0]);
            return target;
        }
    }
    /**
     * An XML HTTP(@http://www.opengis.net/ows/1.1).
     *
     * This is a complex type.
     */
    public static class HTTPImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.ows.x11.HTTPDocument.HTTP {
        private static final long serialVersionUID = 1L;

        public HTTPImpl(org.apache.xmlbeans.SchemaType sType) {
            super(sType);
        }

        private static final QName[] PROPERTY_QNAME = {
            new QName("http://www.opengis.net/ows/1.1", "Get"),
            new QName("http://www.opengis.net/ows/1.1", "Post"),
        };


        /**
         * Gets a List of "Get" elements
         */
        @Override
        public java.util.List getGetList() {
            synchronized (monitor()) {
                check_orphaned();
                return new org.apache.xmlbeans.impl.values.JavaListXmlObject<>(
                    this::getGetArray,
                    this::setGetArray,
                    this::insertNewGet,
                    this::removeGet,
                    this::sizeOfGetArray
                );
            }
        }

        /**
         * Gets array of all "Get" elements
         */
        @Override
        public net.opengis.ows.x11.RequestMethodType[] getGetArray() {
            return getXmlObjectArray(PROPERTY_QNAME[0], new net.opengis.ows.x11.RequestMethodType[0]);
        }

        /**
         * Gets ith "Get" element
         */
        @Override
        public net.opengis.ows.x11.RequestMethodType getGetArray(int i) {
            synchronized (monitor()) {
                check_orphaned();
                net.opengis.ows.x11.RequestMethodType target = null;
                target = (net.opengis.ows.x11.RequestMethodType)get_store().find_element_user(PROPERTY_QNAME[0], i);
                if (target == null) {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }

        /**
         * Returns number of "Get" element
         */
        @Override
        public int sizeOfGetArray() {
            synchronized (monitor()) {
                check_orphaned();
                return get_store().count_elements(PROPERTY_QNAME[0]);
            }
        }

        /**
         * Sets array of all "Get" element  WARNING: This method is not atomicaly synchronized.
         */
        @Override
        public void setGetArray(net.opengis.ows.x11.RequestMethodType[] getArray) {
            check_orphaned();
            arraySetterHelper(getArray, PROPERTY_QNAME[0]);
        }

        /**
         * Sets ith "Get" element
         */
        @Override
        public void setGetArray(int i, net.opengis.ows.x11.RequestMethodType get) {
            generatedSetterHelperImpl(get, PROPERTY_QNAME[0], i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
        }

        /**
         * Inserts and returns a new empty value (as xml) as the ith "Get" element
         */
        @Override
        public net.opengis.ows.x11.RequestMethodType insertNewGet(int i) {
            synchronized (monitor()) {
                check_orphaned();
                net.opengis.ows.x11.RequestMethodType target = null;
                target = (net.opengis.ows.x11.RequestMethodType)get_store().insert_element_user(PROPERTY_QNAME[0], i);
                return target;
            }
        }

        /**
         * Appends and returns a new empty value (as xml) as the last "Get" element
         */
        @Override
        public net.opengis.ows.x11.RequestMethodType addNewGet() {
            synchronized (monitor()) {
                check_orphaned();
                net.opengis.ows.x11.RequestMethodType target = null;
                target = (net.opengis.ows.x11.RequestMethodType)get_store().add_element_user(PROPERTY_QNAME[0]);
                return target;
            }
        }

        /**
         * Removes the ith "Get" element
         */
        @Override
        public void removeGet(int i) {
            synchronized (monitor()) {
                check_orphaned();
                get_store().remove_element(PROPERTY_QNAME[0], i);
            }
        }

        /**
         * Gets a List of "Post" elements
         */
        @Override
        public java.util.List getPostList() {
            synchronized (monitor()) {
                check_orphaned();
                return new org.apache.xmlbeans.impl.values.JavaListXmlObject<>(
                    this::getPostArray,
                    this::setPostArray,
                    this::insertNewPost,
                    this::removePost,
                    this::sizeOfPostArray
                );
            }
        }

        /**
         * Gets array of all "Post" elements
         */
        @Override
        public net.opengis.ows.x11.RequestMethodType[] getPostArray() {
            return getXmlObjectArray(PROPERTY_QNAME[1], new net.opengis.ows.x11.RequestMethodType[0]);
        }

        /**
         * Gets ith "Post" element
         */
        @Override
        public net.opengis.ows.x11.RequestMethodType getPostArray(int i) {
            synchronized (monitor()) {
                check_orphaned();
                net.opengis.ows.x11.RequestMethodType target = null;
                target = (net.opengis.ows.x11.RequestMethodType)get_store().find_element_user(PROPERTY_QNAME[1], i);
                if (target == null) {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }

        /**
         * Returns number of "Post" element
         */
        @Override
        public int sizeOfPostArray() {
            synchronized (monitor()) {
                check_orphaned();
                return get_store().count_elements(PROPERTY_QNAME[1]);
            }
        }

        /**
         * Sets array of all "Post" element  WARNING: This method is not atomicaly synchronized.
         */
        @Override
        public void setPostArray(net.opengis.ows.x11.RequestMethodType[] postArray) {
            check_orphaned();
            arraySetterHelper(postArray, PROPERTY_QNAME[1]);
        }

        /**
         * Sets ith "Post" element
         */
        @Override
        public void setPostArray(int i, net.opengis.ows.x11.RequestMethodType post) {
            generatedSetterHelperImpl(post, PROPERTY_QNAME[1], i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
        }

        /**
         * Inserts and returns a new empty value (as xml) as the ith "Post" element
         */
        @Override
        public net.opengis.ows.x11.RequestMethodType insertNewPost(int i) {
            synchronized (monitor()) {
                check_orphaned();
                net.opengis.ows.x11.RequestMethodType target = null;
                target = (net.opengis.ows.x11.RequestMethodType)get_store().insert_element_user(PROPERTY_QNAME[1], i);
                return target;
            }
        }

        /**
         * Appends and returns a new empty value (as xml) as the last "Post" element
         */
        @Override
        public net.opengis.ows.x11.RequestMethodType addNewPost() {
            synchronized (monitor()) {
                check_orphaned();
                net.opengis.ows.x11.RequestMethodType target = null;
                target = (net.opengis.ows.x11.RequestMethodType)get_store().add_element_user(PROPERTY_QNAME[1]);
                return target;
            }
        }

        /**
         * Removes the ith "Post" element
         */
        @Override
        public void removePost(int i) {
            synchronized (monitor()) {
                check_orphaned();
                get_store().remove_element(PROPERTY_QNAME[1], i);
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy