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

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

The newest version!
/*
 * An XML document type.
 * Localname: Capabilities
 * Namespace: http://www.opengis.net/wns/0.0
 * Java type: net.opengis.wns.x00.CapabilitiesDocument
 *
 * Automatically generated - do not modify.
 */
package net.opengis.wns.x00.impl;
/**
 * A document containing one Capabilities(@http://www.opengis.net/wns/0.0) element.
 *
 * This is a complex type.
 */
public class CapabilitiesDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.wns.x00.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/wns/0.0", "Capabilities");
    
    
    /**
     * Gets the "Capabilities" element
     */
    public net.opengis.wns.x00.CapabilitiesDocument.Capabilities getCapabilities()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.wns.x00.CapabilitiesDocument.Capabilities target = null;
            target = (net.opengis.wns.x00.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.wns.x00.CapabilitiesDocument.Capabilities capabilities)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.wns.x00.CapabilitiesDocument.Capabilities target = null;
            target = (net.opengis.wns.x00.CapabilitiesDocument.Capabilities)get_store().find_element_user(CAPABILITIES$0, 0);
            if (target == null)
            {
                target = (net.opengis.wns.x00.CapabilitiesDocument.Capabilities)get_store().add_element_user(CAPABILITIES$0);
            }
            target.set(capabilities);
        }
    }
    
    /**
     * Appends and returns a new empty "Capabilities" element
     */
    public net.opengis.wns.x00.CapabilitiesDocument.Capabilities addNewCapabilities()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.wns.x00.CapabilitiesDocument.Capabilities target = null;
            target = (net.opengis.wns.x00.CapabilitiesDocument.Capabilities)get_store().add_element_user(CAPABILITIES$0);
            return target;
        }
    }
    /**
     * An XML Capabilities(@http://www.opengis.net/wns/0.0).
     *
     * This is a complex type.
     */
    public static class CapabilitiesImpl extends net.opengis.ows.impl.CapabilitiesBaseTypeImpl implements net.opengis.wns.x00.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/wns/0.0", "Contents");
        
        
        /**
         * Gets the "Contents" element
         */
        public net.opengis.wns.x00.ContentsDocument.Contents getContents()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.wns.x00.ContentsDocument.Contents target = null;
                target = (net.opengis.wns.x00.ContentsDocument.Contents)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.wns.x00.ContentsDocument.Contents contents)
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.wns.x00.ContentsDocument.Contents target = null;
                target = (net.opengis.wns.x00.ContentsDocument.Contents)get_store().find_element_user(CONTENTS$0, 0);
                if (target == null)
                {
                    target = (net.opengis.wns.x00.ContentsDocument.Contents)get_store().add_element_user(CONTENTS$0);
                }
                target.set(contents);
            }
        }
        
        /**
         * Appends and returns a new empty "Contents" element
         */
        public net.opengis.wns.x00.ContentsDocument.Contents addNewContents()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.wns.x00.ContentsDocument.Contents target = null;
                target = (net.opengis.wns.x00.ContentsDocument.Contents)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