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

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

The newest version!
/*
 * An XML document type.
 * Localname: TileMatrixSetLink
 * Namespace: http://www.opengis.net/wmts/1.0
 * Java type: net.opengis.wmts.x10.TileMatrixSetLinkDocument
 *
 * 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 TileMatrixSetLink(@http://www.opengis.net/wmts/1.0) element.
 *
 * This is a complex type.
 */
public class TileMatrixSetLinkDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.wmts.x10.TileMatrixSetLinkDocument {
    private static final long serialVersionUID = 1L;

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

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


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

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

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

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

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


        /**
         * Gets the "TileMatrixSet" element
         */
        @Override
        public java.lang.String getTileMatrixSet() {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[0], 0);
                return (target == null) ? null : target.getStringValue();
            }
        }

        /**
         * Gets (as xml) the "TileMatrixSet" element
         */
        @Override
        public org.apache.xmlbeans.XmlString xgetTileMatrixSet() {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PROPERTY_QNAME[0], 0);
                return target;
            }
        }

        /**
         * Sets the "TileMatrixSet" element
         */
        @Override
        public void setTileMatrixSet(java.lang.String tileMatrixSet) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[0], 0);
                if (target == null) {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPERTY_QNAME[0]);
                }
                target.setStringValue(tileMatrixSet);
            }
        }

        /**
         * Sets (as xml) the "TileMatrixSet" element
         */
        @Override
        public void xsetTileMatrixSet(org.apache.xmlbeans.XmlString tileMatrixSet) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PROPERTY_QNAME[0], 0);
                if (target == null) {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PROPERTY_QNAME[0]);
                }
                target.set(tileMatrixSet);
            }
        }

        /**
         * 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[1], 0);
                return (target == null) ? null : target;
            }
        }

        /**
         * True if has "TileMatrixSetLimits" element
         */
        @Override
        public boolean isSetTileMatrixSetLimits() {
            synchronized (monitor()) {
                check_orphaned();
                return get_store().count_elements(PROPERTY_QNAME[1]) != 0;
            }
        }

        /**
         * Sets the "TileMatrixSetLimits" element
         */
        @Override
        public void setTileMatrixSetLimits(net.opengis.wmts.x10.TileMatrixSetLimitsDocument.TileMatrixSetLimits tileMatrixSetLimits) {
            generatedSetterHelperImpl(tileMatrixSetLimits, PROPERTY_QNAME[1], 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[1]);
                return target;
            }
        }

        /**
         * Unsets the "TileMatrixSetLimits" element
         */
        @Override
        public void unsetTileMatrixSetLimits() {
            synchronized (monitor()) {
                check_orphaned();
                get_store().remove_element(PROPERTY_QNAME[1], 0);
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy