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

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

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

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

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


    /**
     * Gets the "Operation" element
     */
    @Override
    public net.opengis.ows.x11.OperationDocument.Operation getOperation() {
        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], 0);
            return (target == null) ? null : target;
        }
    }

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

    /**
     * Appends and returns a new empty "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;
        }
    }
    /**
     * An XML Operation(@http://www.opengis.net/ows/1.1).
     *
     * This is a complex type.
     */
    public static class OperationImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.ows.x11.OperationDocument.Operation {
        private static final long serialVersionUID = 1L;

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

        private static final QName[] PROPERTY_QNAME = {
            new QName("http://www.opengis.net/ows/1.1", "DCP"),
            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", "Metadata"),
            new QName("", "name"),
        };


        /**
         * Gets a List of "DCP" elements
         */
        @Override
        public java.util.List getDCPList() {
            synchronized (monitor()) {
                check_orphaned();
                return new org.apache.xmlbeans.impl.values.JavaListXmlObject<>(
                    this::getDCPArray,
                    this::setDCPArray,
                    this::insertNewDCP,
                    this::removeDCP,
                    this::sizeOfDCPArray
                );
            }
        }

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

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

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

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

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

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

        /**
         * Removes the ith "DCP" element
         */
        @Override
        public void removeDCP(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 a List of "Metadata" elements
         */
        @Override
        public java.util.List getMetadataList() {
            synchronized (monitor()) {
                check_orphaned();
                return new org.apache.xmlbeans.impl.values.JavaListXmlObject<>(
                    this::getMetadataArray,
                    this::setMetadataArray,
                    this::insertNewMetadata,
                    this::removeMetadata,
                    this::sizeOfMetadataArray
                );
            }
        }

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

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

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

        /**
         * Sets array of all "Metadata" element  WARNING: This method is not atomicaly synchronized.
         */
        @Override
        public void setMetadataArray(net.opengis.ows.x11.MetadataType[] metadataArray) {
            check_orphaned();
            arraySetterHelper(metadataArray, PROPERTY_QNAME[3]);
        }

        /**
         * Sets ith "Metadata" element
         */
        @Override
        public void setMetadataArray(int i, net.opengis.ows.x11.MetadataType metadata) {
            generatedSetterHelperImpl(metadata, PROPERTY_QNAME[3], i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
        }

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

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

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

        /**
         * Gets the "name" attribute
         */
        @Override
        public java.lang.String getName() {
            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.getStringValue();
            }
        }

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

        /**
         * Sets the "name" attribute
         */
        @Override
        public void setName(java.lang.String name) {
            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.setStringValue(name);
            }
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy