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

net.opengis.wmts.x10.impl.TileMatrixSetLimitsDocumentImpl Maven / Gradle / Ivy

The newest version!
/*
 * An XML document type.
 * Localname: TileMatrixSetLimits
 * Namespace: http://www.opengis.net/wmts/1.0
 * Java type: net.opengis.wmts.x10.TileMatrixSetLimitsDocument
 *
 * Automatically generated - do not modify.
 */
package net.opengis.wmts.x10.impl;

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

/**
 * A document containing one TileMatrixSetLimits(@http://www.opengis.net/wmts/1.0) element.
 *
 * This is a complex type.
 */
public class TileMatrixSetLimitsDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.wmts.x10.TileMatrixSetLimitsDocument {
    private static final long serialVersionUID = 1L;

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

    private static final QName[] PROPERTY_QNAME = {
        new QName("http://www.opengis.net/wmts/1.0", "TileMatrixSetLimits"),
    };


    /**
     * Gets the "TileMatrixSetLimits" element
     */
    @Override
    public net.opengis.wmts.x10.TileMatrixSetLimitsDocument.TileMatrixSetLimits getTileMatrixSetLimits() {
        synchronized (monitor()) {
            check_orphaned();
            net.opengis.wmts.x10.TileMatrixSetLimitsDocument.TileMatrixSetLimits target = null;
            target = (net.opengis.wmts.x10.TileMatrixSetLimitsDocument.TileMatrixSetLimits)get_store().find_element_user(PROPERTY_QNAME[0], 0);
            return (target == null) ? null : target;
        }
    }

    /**
     * Sets the "TileMatrixSetLimits" element
     */
    @Override
    public void setTileMatrixSetLimits(net.opengis.wmts.x10.TileMatrixSetLimitsDocument.TileMatrixSetLimits tileMatrixSetLimits) {
        generatedSetterHelperImpl(tileMatrixSetLimits, PROPERTY_QNAME[0], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }

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

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

        private static final QName[] PROPERTY_QNAME = {
            new QName("http://www.opengis.net/wmts/1.0", "TileMatrixLimits"),
        };


        /**
         * Gets a List of "TileMatrixLimits" elements
         */
        @Override
        public java.util.List getTileMatrixLimitsList() {
            synchronized (monitor()) {
                check_orphaned();
                return new org.apache.xmlbeans.impl.values.JavaListXmlObject<>(
                    this::getTileMatrixLimitsArray,
                    this::setTileMatrixLimitsArray,
                    this::insertNewTileMatrixLimits,
                    this::removeTileMatrixLimits,
                    this::sizeOfTileMatrixLimitsArray
                );
            }
        }

        /**
         * Gets array of all "TileMatrixLimits" elements
         */
        @Override
        public net.opengis.wmts.x10.TileMatrixLimitsDocument.TileMatrixLimits[] getTileMatrixLimitsArray() {
            return getXmlObjectArray(PROPERTY_QNAME[0], new net.opengis.wmts.x10.TileMatrixLimitsDocument.TileMatrixLimits[0]);
        }

        /**
         * Gets ith "TileMatrixLimits" element
         */
        @Override
        public net.opengis.wmts.x10.TileMatrixLimitsDocument.TileMatrixLimits getTileMatrixLimitsArray(int i) {
            synchronized (monitor()) {
                check_orphaned();
                net.opengis.wmts.x10.TileMatrixLimitsDocument.TileMatrixLimits target = null;
                target = (net.opengis.wmts.x10.TileMatrixLimitsDocument.TileMatrixLimits)get_store().find_element_user(PROPERTY_QNAME[0], i);
                if (target == null) {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }

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

        /**
         * Sets array of all "TileMatrixLimits" element  WARNING: This method is not atomicaly synchronized.
         */
        @Override
        public void setTileMatrixLimitsArray(net.opengis.wmts.x10.TileMatrixLimitsDocument.TileMatrixLimits[] tileMatrixLimitsArray) {
            check_orphaned();
            arraySetterHelper(tileMatrixLimitsArray, PROPERTY_QNAME[0]);
        }

        /**
         * Sets ith "TileMatrixLimits" element
         */
        @Override
        public void setTileMatrixLimitsArray(int i, net.opengis.wmts.x10.TileMatrixLimitsDocument.TileMatrixLimits tileMatrixLimits) {
            generatedSetterHelperImpl(tileMatrixLimits, 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 "TileMatrixLimits" element
         */
        @Override
        public net.opengis.wmts.x10.TileMatrixLimitsDocument.TileMatrixLimits insertNewTileMatrixLimits(int i) {
            synchronized (monitor()) {
                check_orphaned();
                net.opengis.wmts.x10.TileMatrixLimitsDocument.TileMatrixLimits target = null;
                target = (net.opengis.wmts.x10.TileMatrixLimitsDocument.TileMatrixLimits)get_store().insert_element_user(PROPERTY_QNAME[0], i);
                return target;
            }
        }

        /**
         * Appends and returns a new empty value (as xml) as the last "TileMatrixLimits" element
         */
        @Override
        public net.opengis.wmts.x10.TileMatrixLimitsDocument.TileMatrixLimits addNewTileMatrixLimits() {
            synchronized (monitor()) {
                check_orphaned();
                net.opengis.wmts.x10.TileMatrixLimitsDocument.TileMatrixLimits target = null;
                target = (net.opengis.wmts.x10.TileMatrixLimitsDocument.TileMatrixLimits)get_store().add_element_user(PROPERTY_QNAME[0]);
                return target;
            }
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy