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

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

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

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

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


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

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

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

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

        private static final QName[] PROPERTY_QNAME = {
            new QName("http://www.opengis.net/ows/1.1", "Identifier"),
            new QName("http://www.opengis.net/ows/1.1", "UOM"),
            new QName("http://www.opengis.net/wmts/1.0", "UnitSymbol"),
            new QName("http://www.opengis.net/wmts/1.0", "Default"),
            new QName("http://www.opengis.net/wmts/1.0", "Current"),
            new QName("http://www.opengis.net/wmts/1.0", "Value"),
        };


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

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

        /**
         * Appends and returns a new empty "Identifier" element
         */
        @Override
        public net.opengis.ows.x11.CodeType addNewIdentifier() {
            synchronized (monitor()) {
                check_orphaned();
                net.opengis.ows.x11.CodeType target = null;
                target = (net.opengis.ows.x11.CodeType)get_store().add_element_user(PROPERTY_QNAME[0]);
                return target;
            }
        }

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

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

        /**
         * Sets the "UOM" element
         */
        @Override
        public void setUOM(net.opengis.ows.x11.DomainMetadataType uom) {
            generatedSetterHelperImpl(uom, PROPERTY_QNAME[1], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
        }

        /**
         * Appends and returns a new empty "UOM" element
         */
        @Override
        public net.opengis.ows.x11.DomainMetadataType addNewUOM() {
            synchronized (monitor()) {
                check_orphaned();
                net.opengis.ows.x11.DomainMetadataType target = null;
                target = (net.opengis.ows.x11.DomainMetadataType)get_store().add_element_user(PROPERTY_QNAME[1]);
                return target;
            }
        }

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

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

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

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

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

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

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

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

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

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

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

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

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

        /**
         * Gets the "Current" element
         */
        @Override
        public boolean getCurrent() {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[4], 0);
                return (target == null) ? false : target.getBooleanValue();
            }
        }

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

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

        /**
         * Sets the "Current" element
         */
        @Override
        public void setCurrent(boolean current) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[4], 0);
                if (target == null) {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPERTY_QNAME[4]);
                }
                target.setBooleanValue(current);
            }
        }

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

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

        /**
         * Gets a List of "Value" elements
         */
        @Override
        public java.util.List getValueList() {
            synchronized (monitor()) {
                check_orphaned();
                return new org.apache.xmlbeans.impl.values.JavaListObject<>(
                    this::getValueArray,
                    this::setValueArray,
                    this::insertValue,
                    this::removeValue,
                    this::sizeOfValueArray
                );
            }
        }

        /**
         * Gets array of all "Value" elements
         */
        @Override
        public java.lang.String[] getValueArray() {
            return getObjectArray(PROPERTY_QNAME[5], org.apache.xmlbeans.SimpleValue::getStringValue, String[]::new);
        }

        /**
         * Gets ith "Value" element
         */
        @Override
        public java.lang.String getValueArray(int i) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[5], i);
                if (target == null) {
                    throw new IndexOutOfBoundsException();
                }
                return target.getStringValue();
            }
        }

        /**
         * Gets (as xml) a List of "Value" elements
         */
        @Override
        public java.util.List xgetValueList() {
            synchronized (monitor()) {
                check_orphaned();
                return new org.apache.xmlbeans.impl.values.JavaListXmlObject<>(
                    this::xgetValueArray,
                    this::xsetValueArray,
                    this::insertNewValue,
                    this::removeValue,
                    this::sizeOfValueArray
                );
            }
        }

        /**
         * Gets (as xml) array of all "Value" elements
         */
        @Override
        public org.apache.xmlbeans.XmlString[] xgetValueArray() {
            return xgetArray(PROPERTY_QNAME[5], org.apache.xmlbeans.XmlString[]::new);
        }

        /**
         * Gets (as xml) ith "Value" element
         */
        @Override
        public org.apache.xmlbeans.XmlString xgetValueArray(int i) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PROPERTY_QNAME[5], i);
                if (target == null) {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }

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

        /**
         * Sets array of all "Value" element
         */
        @Override
        public void setValueArray(java.lang.String[] valueArray) {
            synchronized (monitor()) {
                check_orphaned();
                arraySetterHelper(valueArray, PROPERTY_QNAME[5]);
            }
        }

        /**
         * Sets ith "Value" element
         */
        @Override
        public void setValueArray(int i, java.lang.String value) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[5], i);
                if (target == null) {
                    throw new IndexOutOfBoundsException();
                }
                target.setStringValue(value);
            }
        }

        /**
         * Sets (as xml) array of all "Value" element
         */
        @Override
        public void xsetValueArray(org.apache.xmlbeans.XmlString[]valueArray) {
            synchronized (monitor()) {
                check_orphaned();
                arraySetterHelper(valueArray, PROPERTY_QNAME[5]);
            }
        }

        /**
         * Sets (as xml) ith "Value" element
         */
        @Override
        public void xsetValueArray(int i, org.apache.xmlbeans.XmlString value) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PROPERTY_QNAME[5], i);
                if (target == null) {
                    throw new IndexOutOfBoundsException();
                }
                target.set(value);
            }
        }

        /**
         * Inserts the value as the ith "Value" element
         */
        @Override
        public void insertValue(int i, java.lang.String value) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target =
                    (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(PROPERTY_QNAME[5], i);
                target.setStringValue(value);
            }
        }

        /**
         * Appends the value as the last "Value" element
         */
        @Override
        public void addValue(java.lang.String value) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPERTY_QNAME[5]);
                target.setStringValue(value);
            }
        }

        /**
         * Inserts and returns a new empty value (as xml) as the ith "Value" element
         */
        @Override
        public org.apache.xmlbeans.XmlString insertNewValue(int i) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(PROPERTY_QNAME[5], i);
                return target;
            }
        }

        /**
         * Appends and returns a new empty value (as xml) as the last "Value" element
         */
        @Override
        public org.apache.xmlbeans.XmlString addNewValue() {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PROPERTY_QNAME[5]);
                return target;
            }
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy