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

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

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

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

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


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

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

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

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

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


        /**
         * Gets a List of "Operation" elements
         */
        @Override
        public java.util.List getOperationList() {
            synchronized (monitor()) {
                check_orphaned();
                return new org.apache.xmlbeans.impl.values.JavaListXmlObject<>(
                    this::getOperationArray,
                    this::setOperationArray,
                    this::insertNewOperation,
                    this::removeOperation,
                    this::sizeOfOperationArray
                );
            }
        }

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

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

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

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

        /**
         * Sets ith "Operation" element
         */
        @Override
        public void setOperationArray(int i, net.opengis.ows.x11.OperationDocument.Operation operation) {
            generatedSetterHelperImpl(operation, 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 "Operation" element
         */
        @Override
        public net.opengis.ows.x11.OperationDocument.Operation insertNewOperation(int i) {
            synchronized (monitor()) {
                check_orphaned();
                net.opengis.ows.x11.OperationDocument.Operation target = null;
                target = (net.opengis.ows.x11.OperationDocument.Operation)get_store().insert_element_user(PROPERTY_QNAME[0], i);
                return target;
            }
        }

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

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

        /**
         * Gets a List of "Parameter" elements
         */
        @Override
        public java.util.List getParameterList() {
            synchronized (monitor()) {
                check_orphaned();
                return new org.apache.xmlbeans.impl.values.JavaListXmlObject<>(
                    this::getParameterArray,
                    this::setParameterArray,
                    this::insertNewParameter,
                    this::removeParameter,
                    this::sizeOfParameterArray
                );
            }
        }

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

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

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

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

        /**
         * Sets ith "Parameter" element
         */
        @Override
        public void setParameterArray(int i, net.opengis.ows.x11.DomainType parameter) {
            generatedSetterHelperImpl(parameter, 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 "Parameter" element
         */
        @Override
        public net.opengis.ows.x11.DomainType insertNewParameter(int i) {
            synchronized (monitor()) {
                check_orphaned();
                net.opengis.ows.x11.DomainType target = null;
                target = (net.opengis.ows.x11.DomainType)get_store().insert_element_user(PROPERTY_QNAME[1], i);
                return target;
            }
        }

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

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

        /**
         * Gets a List of "Constraint" elements
         */
        @Override
        public java.util.List getConstraintList() {
            synchronized (monitor()) {
                check_orphaned();
                return new org.apache.xmlbeans.impl.values.JavaListXmlObject<>(
                    this::getConstraintArray,
                    this::setConstraintArray,
                    this::insertNewConstraint,
                    this::removeConstraint,
                    this::sizeOfConstraintArray
                );
            }
        }

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

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

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

        /**
         * Sets array of all "Constraint" element  WARNING: This method is not atomicaly synchronized.
         */
        @Override
        public void setConstraintArray(net.opengis.ows.x11.DomainType[] constraintArray) {
            check_orphaned();
            arraySetterHelper(constraintArray, PROPERTY_QNAME[2]);
        }

        /**
         * Sets ith "Constraint" element
         */
        @Override
        public void setConstraintArray(int i, net.opengis.ows.x11.DomainType constraint) {
            generatedSetterHelperImpl(constraint, PROPERTY_QNAME[2], i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
        }

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

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

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

        /**
         * Gets the "ExtendedCapabilities" element
         */
        @Override
        public org.apache.xmlbeans.XmlObject getExtendedCapabilities() {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.XmlObject target = null;
                target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(PROPERTY_QNAME[3], 0);
                return (target == null) ? null : target;
            }
        }

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

        /**
         * Sets the "ExtendedCapabilities" element
         */
        @Override
        public void setExtendedCapabilities(org.apache.xmlbeans.XmlObject extendedCapabilities) {
            generatedSetterHelperImpl(extendedCapabilities, PROPERTY_QNAME[3], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
        }

        /**
         * Appends and returns a new empty "ExtendedCapabilities" element
         */
        @Override
        public org.apache.xmlbeans.XmlObject addNewExtendedCapabilities() {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.XmlObject target = null;
                target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(PROPERTY_QNAME[3]);
                return target;
            }
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy