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

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

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

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

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


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

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

    /**
     * Appends and returns a new empty "LegendURL" element
     */
    @Override
    public net.opengis.wmts.x10.LegendURLDocument.LegendURL addNewLegendURL() {
        synchronized (monitor()) {
            check_orphaned();
            net.opengis.wmts.x10.LegendURLDocument.LegendURL target = null;
            target = (net.opengis.wmts.x10.LegendURLDocument.LegendURL)get_store().add_element_user(PROPERTY_QNAME[0]);
            return target;
        }
    }
    /**
     * An XML LegendURL(@http://www.opengis.net/wmts/1.0).
     *
     * This is a complex type.
     */
    public static class LegendURLImpl extends net.opengis.ows.x11.impl.OnlineResourceTypeImpl implements net.opengis.wmts.x10.LegendURLDocument.LegendURL {
        private static final long serialVersionUID = 1L;

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

        private static final QName[] PROPERTY_QNAME = {
            new QName("", "format"),
            new QName("", "minScaleDenominator"),
            new QName("", "maxScaleDenominator"),
            new QName("", "width"),
            new QName("", "height"),
        };


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

        /**
         * Gets (as xml) the "format" attribute
         */
        @Override
        public net.opengis.ows.x11.MimeType xgetFormat() {
            synchronized (monitor()) {
                check_orphaned();
                net.opengis.ows.x11.MimeType target = null;
                target = (net.opengis.ows.x11.MimeType)get_store().find_attribute_user(PROPERTY_QNAME[0]);
                return target;
            }
        }

        /**
         * True if has "format" attribute
         */
        @Override
        public boolean isSetFormat() {
            synchronized (monitor()) {
                check_orphaned();
                return get_store().find_attribute_user(PROPERTY_QNAME[0]) != null;
            }
        }

        /**
         * Sets the "format" attribute
         */
        @Override
        public void setFormat(java.lang.String format) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[0]);
                if (target == null) {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[0]);
                }
                target.setStringValue(format);
            }
        }

        /**
         * Sets (as xml) the "format" attribute
         */
        @Override
        public void xsetFormat(net.opengis.ows.x11.MimeType format) {
            synchronized (monitor()) {
                check_orphaned();
                net.opengis.ows.x11.MimeType target = null;
                target = (net.opengis.ows.x11.MimeType)get_store().find_attribute_user(PROPERTY_QNAME[0]);
                if (target == null) {
                    target = (net.opengis.ows.x11.MimeType)get_store().add_attribute_user(PROPERTY_QNAME[0]);
                }
                target.set(format);
            }
        }

        /**
         * Unsets the "format" attribute
         */
        @Override
        public void unsetFormat() {
            synchronized (monitor()) {
                check_orphaned();
                get_store().remove_attribute(PROPERTY_QNAME[0]);
            }
        }

        /**
         * Gets the "minScaleDenominator" attribute
         */
        @Override
        public double getMinScaleDenominator() {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[1]);
                return (target == null) ? 0.0 : target.getDoubleValue();
            }
        }

        /**
         * Gets (as xml) the "minScaleDenominator" attribute
         */
        @Override
        public org.apache.xmlbeans.XmlDouble xgetMinScaleDenominator() {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.XmlDouble target = null;
                target = (org.apache.xmlbeans.XmlDouble)get_store().find_attribute_user(PROPERTY_QNAME[1]);
                return target;
            }
        }

        /**
         * True if has "minScaleDenominator" attribute
         */
        @Override
        public boolean isSetMinScaleDenominator() {
            synchronized (monitor()) {
                check_orphaned();
                return get_store().find_attribute_user(PROPERTY_QNAME[1]) != null;
            }
        }

        /**
         * Sets the "minScaleDenominator" attribute
         */
        @Override
        public void setMinScaleDenominator(double minScaleDenominator) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[1]);
                if (target == null) {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[1]);
                }
                target.setDoubleValue(minScaleDenominator);
            }
        }

        /**
         * Sets (as xml) the "minScaleDenominator" attribute
         */
        @Override
        public void xsetMinScaleDenominator(org.apache.xmlbeans.XmlDouble minScaleDenominator) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.XmlDouble target = null;
                target = (org.apache.xmlbeans.XmlDouble)get_store().find_attribute_user(PROPERTY_QNAME[1]);
                if (target == null) {
                    target = (org.apache.xmlbeans.XmlDouble)get_store().add_attribute_user(PROPERTY_QNAME[1]);
                }
                target.set(minScaleDenominator);
            }
        }

        /**
         * Unsets the "minScaleDenominator" attribute
         */
        @Override
        public void unsetMinScaleDenominator() {
            synchronized (monitor()) {
                check_orphaned();
                get_store().remove_attribute(PROPERTY_QNAME[1]);
            }
        }

        /**
         * Gets the "maxScaleDenominator" attribute
         */
        @Override
        public double getMaxScaleDenominator() {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[2]);
                return (target == null) ? 0.0 : target.getDoubleValue();
            }
        }

        /**
         * Gets (as xml) the "maxScaleDenominator" attribute
         */
        @Override
        public org.apache.xmlbeans.XmlDouble xgetMaxScaleDenominator() {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.XmlDouble target = null;
                target = (org.apache.xmlbeans.XmlDouble)get_store().find_attribute_user(PROPERTY_QNAME[2]);
                return target;
            }
        }

        /**
         * True if has "maxScaleDenominator" attribute
         */
        @Override
        public boolean isSetMaxScaleDenominator() {
            synchronized (monitor()) {
                check_orphaned();
                return get_store().find_attribute_user(PROPERTY_QNAME[2]) != null;
            }
        }

        /**
         * Sets the "maxScaleDenominator" attribute
         */
        @Override
        public void setMaxScaleDenominator(double maxScaleDenominator) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[2]);
                if (target == null) {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[2]);
                }
                target.setDoubleValue(maxScaleDenominator);
            }
        }

        /**
         * Sets (as xml) the "maxScaleDenominator" attribute
         */
        @Override
        public void xsetMaxScaleDenominator(org.apache.xmlbeans.XmlDouble maxScaleDenominator) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.XmlDouble target = null;
                target = (org.apache.xmlbeans.XmlDouble)get_store().find_attribute_user(PROPERTY_QNAME[2]);
                if (target == null) {
                    target = (org.apache.xmlbeans.XmlDouble)get_store().add_attribute_user(PROPERTY_QNAME[2]);
                }
                target.set(maxScaleDenominator);
            }
        }

        /**
         * Unsets the "maxScaleDenominator" attribute
         */
        @Override
        public void unsetMaxScaleDenominator() {
            synchronized (monitor()) {
                check_orphaned();
                get_store().remove_attribute(PROPERTY_QNAME[2]);
            }
        }

        /**
         * Gets the "width" attribute
         */
        @Override
        public java.math.BigInteger getWidth() {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[3]);
                return (target == null) ? null : target.getBigIntegerValue();
            }
        }

        /**
         * Gets (as xml) the "width" attribute
         */
        @Override
        public org.apache.xmlbeans.XmlPositiveInteger xgetWidth() {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.XmlPositiveInteger target = null;
                target = (org.apache.xmlbeans.XmlPositiveInteger)get_store().find_attribute_user(PROPERTY_QNAME[3]);
                return target;
            }
        }

        /**
         * True if has "width" attribute
         */
        @Override
        public boolean isSetWidth() {
            synchronized (monitor()) {
                check_orphaned();
                return get_store().find_attribute_user(PROPERTY_QNAME[3]) != null;
            }
        }

        /**
         * Sets the "width" attribute
         */
        @Override
        public void setWidth(java.math.BigInteger width) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[3]);
                if (target == null) {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[3]);
                }
                target.setBigIntegerValue(width);
            }
        }

        /**
         * Sets (as xml) the "width" attribute
         */
        @Override
        public void xsetWidth(org.apache.xmlbeans.XmlPositiveInteger width) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.XmlPositiveInteger target = null;
                target = (org.apache.xmlbeans.XmlPositiveInteger)get_store().find_attribute_user(PROPERTY_QNAME[3]);
                if (target == null) {
                    target = (org.apache.xmlbeans.XmlPositiveInteger)get_store().add_attribute_user(PROPERTY_QNAME[3]);
                }
                target.set(width);
            }
        }

        /**
         * Unsets the "width" attribute
         */
        @Override
        public void unsetWidth() {
            synchronized (monitor()) {
                check_orphaned();
                get_store().remove_attribute(PROPERTY_QNAME[3]);
            }
        }

        /**
         * Gets the "height" attribute
         */
        @Override
        public java.math.BigInteger getHeight() {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[4]);
                return (target == null) ? null : target.getBigIntegerValue();
            }
        }

        /**
         * Gets (as xml) the "height" attribute
         */
        @Override
        public org.apache.xmlbeans.XmlPositiveInteger xgetHeight() {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.XmlPositiveInteger target = null;
                target = (org.apache.xmlbeans.XmlPositiveInteger)get_store().find_attribute_user(PROPERTY_QNAME[4]);
                return target;
            }
        }

        /**
         * True if has "height" attribute
         */
        @Override
        public boolean isSetHeight() {
            synchronized (monitor()) {
                check_orphaned();
                return get_store().find_attribute_user(PROPERTY_QNAME[4]) != null;
            }
        }

        /**
         * Sets the "height" attribute
         */
        @Override
        public void setHeight(java.math.BigInteger height) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[4]);
                if (target == null) {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[4]);
                }
                target.setBigIntegerValue(height);
            }
        }

        /**
         * Sets (as xml) the "height" attribute
         */
        @Override
        public void xsetHeight(org.apache.xmlbeans.XmlPositiveInteger height) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.XmlPositiveInteger target = null;
                target = (org.apache.xmlbeans.XmlPositiveInteger)get_store().find_attribute_user(PROPERTY_QNAME[4]);
                if (target == null) {
                    target = (org.apache.xmlbeans.XmlPositiveInteger)get_store().add_attribute_user(PROPERTY_QNAME[4]);
                }
                target.set(height);
            }
        }

        /**
         * Unsets the "height" attribute
         */
        @Override
        public void unsetHeight() {
            synchronized (monitor()) {
                check_orphaned();
                get_store().remove_attribute(PROPERTY_QNAME[4]);
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy