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

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

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

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

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


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

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

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

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

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


        /**
         * Gets the "ProviderName" element
         */
        @Override
        public java.lang.String getProviderName() {
            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 "ProviderName" element
         */
        @Override
        public org.apache.xmlbeans.XmlString xgetProviderName() {
            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 "ProviderName" element
         */
        @Override
        public void setProviderName(java.lang.String providerName) {
            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(providerName);
            }
        }

        /**
         * Sets (as xml) the "ProviderName" element
         */
        @Override
        public void xsetProviderName(org.apache.xmlbeans.XmlString providerName) {
            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(providerName);
            }
        }

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

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

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

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

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

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

        /**
         * Sets the "ServiceContact" element
         */
        @Override
        public void setServiceContact(net.opengis.ows.x11.ResponsiblePartySubsetType serviceContact) {
            generatedSetterHelperImpl(serviceContact, PROPERTY_QNAME[2], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy