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

net.opengis.sps.x10.impl.CapabilitiesDocumentImpl Maven / Gradle / Ivy

There is a newer version: 2.7.0
Show newest version
/*
 * An XML document type.
 * Localname: Capabilities
 * Namespace: http://www.opengis.net/sps/1.0
 * Java type: net.opengis.sps.x10.CapabilitiesDocument
 *
 * Automatically generated - do not modify.
 */
package net.opengis.sps.x10.impl;
/**
 * A document containing one Capabilities(@http://www.opengis.net/sps/1.0) element.
 *
 * This is a complex type.
 */
public class CapabilitiesDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.sps.x10.CapabilitiesDocument
{
    private static final long serialVersionUID = 1L;
    
    public CapabilitiesDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CAPABILITIES$0 = 
        new javax.xml.namespace.QName("http://www.opengis.net/sps/1.0", "Capabilities");
    
    
    /**
     * Gets the "Capabilities" element
     */
    public net.opengis.sps.x10.CapabilitiesDocument.Capabilities getCapabilities()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sps.x10.CapabilitiesDocument.Capabilities target = null;
            target = (net.opengis.sps.x10.CapabilitiesDocument.Capabilities)get_store().find_element_user(CAPABILITIES$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "Capabilities" element
     */
    public void setCapabilities(net.opengis.sps.x10.CapabilitiesDocument.Capabilities capabilities)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sps.x10.CapabilitiesDocument.Capabilities target = null;
            target = (net.opengis.sps.x10.CapabilitiesDocument.Capabilities)get_store().find_element_user(CAPABILITIES$0, 0);
            if (target == null)
            {
                target = (net.opengis.sps.x10.CapabilitiesDocument.Capabilities)get_store().add_element_user(CAPABILITIES$0);
            }
            target.set(capabilities);
        }
    }
    
    /**
     * Appends and returns a new empty "Capabilities" element
     */
    public net.opengis.sps.x10.CapabilitiesDocument.Capabilities addNewCapabilities()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sps.x10.CapabilitiesDocument.Capabilities target = null;
            target = (net.opengis.sps.x10.CapabilitiesDocument.Capabilities)get_store().add_element_user(CAPABILITIES$0);
            return target;
        }
    }
    /**
     * An XML Capabilities(@http://www.opengis.net/sps/1.0).
     *
     * This is a complex type.
     */
    public static class CapabilitiesImpl extends net.opengis.ows.impl.CapabilitiesBaseTypeImpl implements net.opengis.sps.x10.CapabilitiesDocument.Capabilities
    {
        private static final long serialVersionUID = 1L;
        
        public CapabilitiesImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName CONTENTS$0 = 
            new javax.xml.namespace.QName("http://www.opengis.net/sps/1.0", "Contents");
        
        
        /**
         * Gets the "Contents" element
         */
        public net.opengis.sps.x10.SPSContentsType getContents()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sps.x10.SPSContentsType target = null;
                target = (net.opengis.sps.x10.SPSContentsType)get_store().find_element_user(CONTENTS$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * True if has "Contents" element
         */
        public boolean isSetContents()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(CONTENTS$0) != 0;
            }
        }
        
        /**
         * Sets the "Contents" element
         */
        public void setContents(net.opengis.sps.x10.SPSContentsType contents)
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sps.x10.SPSContentsType target = null;
                target = (net.opengis.sps.x10.SPSContentsType)get_store().find_element_user(CONTENTS$0, 0);
                if (target == null)
                {
                    target = (net.opengis.sps.x10.SPSContentsType)get_store().add_element_user(CONTENTS$0);
                }
                target.set(contents);
            }
        }
        
        /**
         * Appends and returns a new empty "Contents" element
         */
        public net.opengis.sps.x10.SPSContentsType addNewContents()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.sps.x10.SPSContentsType target = null;
                target = (net.opengis.sps.x10.SPSContentsType)get_store().add_element_user(CONTENTS$0);
                return target;
            }
        }
        
        /**
         * Unsets the "Contents" element
         */
        public void unsetContents()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(CONTENTS$0, 0);
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy