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

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

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

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

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


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

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

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

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

        private static final QName[] PROPERTY_QNAME = {
            new QName("", "service"),
        };


        /**
         * Gets the "service" attribute
         */
        @Override
        public java.lang.String getService() {
            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_default_attribute_value(PROPERTY_QNAME[0]);
                }
                return (target == null) ? null : target.getStringValue();
            }
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy