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

net.opengis.wns.x00.impl.GetCapabilitiesDocumentImpl Maven / Gradle / Ivy

There is a newer version: 2.7.0
Show newest version
/*
 * An XML document type.
 * Localname: GetCapabilities
 * Namespace: http://www.opengis.net/wns/0.0
 * Java type: net.opengis.wns.x00.GetCapabilitiesDocument
 *
 * Automatically generated - do not modify.
 */
package net.opengis.wns.x00.impl;
/**
 * A document containing one GetCapabilities(@http://www.opengis.net/wns/0.0) element.
 *
 * This is a complex type.
 */
public class GetCapabilitiesDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.wns.x00.GetCapabilitiesDocument
{
    private static final long serialVersionUID = 1L;
    
    public GetCapabilitiesDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName GETCAPABILITIES$0 = 
        new javax.xml.namespace.QName("http://www.opengis.net/wns/0.0", "GetCapabilities");
    
    
    /**
     * Gets the "GetCapabilities" element
     */
    public net.opengis.wns.x00.GetCapabilitiesDocument.GetCapabilities getGetCapabilities()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.wns.x00.GetCapabilitiesDocument.GetCapabilities target = null;
            target = (net.opengis.wns.x00.GetCapabilitiesDocument.GetCapabilities)get_store().find_element_user(GETCAPABILITIES$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "GetCapabilities" element
     */
    public void setGetCapabilities(net.opengis.wns.x00.GetCapabilitiesDocument.GetCapabilities getCapabilities)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.wns.x00.GetCapabilitiesDocument.GetCapabilities target = null;
            target = (net.opengis.wns.x00.GetCapabilitiesDocument.GetCapabilities)get_store().find_element_user(GETCAPABILITIES$0, 0);
            if (target == null)
            {
                target = (net.opengis.wns.x00.GetCapabilitiesDocument.GetCapabilities)get_store().add_element_user(GETCAPABILITIES$0);
            }
            target.set(getCapabilities);
        }
    }
    
    /**
     * Appends and returns a new empty "GetCapabilities" element
     */
    public net.opengis.wns.x00.GetCapabilitiesDocument.GetCapabilities addNewGetCapabilities()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.wns.x00.GetCapabilitiesDocument.GetCapabilities target = null;
            target = (net.opengis.wns.x00.GetCapabilitiesDocument.GetCapabilities)get_store().add_element_user(GETCAPABILITIES$0);
            return target;
        }
    }
    /**
     * An XML GetCapabilities(@http://www.opengis.net/wns/0.0).
     *
     * This is a complex type.
     */
    public static class GetCapabilitiesImpl extends net.opengis.ows.impl.GetCapabilitiesTypeImpl implements net.opengis.wns.x00.GetCapabilitiesDocument.GetCapabilities
    {
        private static final long serialVersionUID = 1L;
        
        public GetCapabilitiesImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName SERVICE$0 = 
            new javax.xml.namespace.QName("", "service");
        
        
        /**
         * Gets the "service" attribute
         */
        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(SERVICE$0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(SERVICE$0);
                }
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "service" attribute
         */
        public net.opengis.ows.ServiceType xgetService()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.ows.ServiceType target = null;
                target = (net.opengis.ows.ServiceType)get_store().find_attribute_user(SERVICE$0);
                if (target == null)
                {
                    target = (net.opengis.ows.ServiceType)get_default_attribute_value(SERVICE$0);
                }
                return target;
            }
        }
        
        /**
         * Sets the "service" attribute
         */
        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(SERVICE$0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SERVICE$0);
                }
                target.setStringValue(service);
            }
        }
        
        /**
         * Sets (as xml) the "service" attribute
         */
        public void xsetService(net.opengis.ows.ServiceType service)
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.ows.ServiceType target = null;
                target = (net.opengis.ows.ServiceType)get_store().find_attribute_user(SERVICE$0);
                if (target == null)
                {
                    target = (net.opengis.ows.ServiceType)get_store().add_attribute_user(SERVICE$0);
                }
                target.set(service);
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy