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

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

There is a newer version: 2.7.0
Show newest version
/*
 * An XML document type.
 * Localname: Contents
 * Namespace: http://www.opengis.net/wns/0.0
 * Java type: net.opengis.wns.x00.ContentsDocument
 *
 * Automatically generated - do not modify.
 */
package net.opengis.wns.x00.impl;
/**
 * A document containing one Contents(@http://www.opengis.net/wns/0.0) element.
 *
 * This is a complex type.
 */
public class ContentsDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.wns.x00.ContentsDocument
{
    private static final long serialVersionUID = 1L;
    
    public ContentsDocumentImpl(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;
        }
    }
    
    /**
     * 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;
        }
    }
    /**
     * An XML Contents(@http://www.opengis.net/wns/0.0).
     *
     * This is a complex type.
     */
    public static class ContentsImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.wns.x00.ContentsDocument.Contents
    {
        private static final long serialVersionUID = 1L;
        
        public ContentsImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName SUPPORTEDCOMMUNICATIONPROTOCOLS$0 = 
            new javax.xml.namespace.QName("http://www.opengis.net/wns/0.0", "SupportedCommunicationProtocols");
        private static final javax.xml.namespace.QName MAXTTLOFMESSAGES$2 = 
            new javax.xml.namespace.QName("http://www.opengis.net/wns/0.0", "MaxTTLOfMessages");
        
        
        /**
         * Gets the "SupportedCommunicationProtocols" element
         */
        public net.opengis.wns.x00.ProtocolsType getSupportedCommunicationProtocols()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.wns.x00.ProtocolsType target = null;
                target = (net.opengis.wns.x00.ProtocolsType)get_store().find_element_user(SUPPORTEDCOMMUNICATIONPROTOCOLS$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * Sets the "SupportedCommunicationProtocols" element
         */
        public void setSupportedCommunicationProtocols(net.opengis.wns.x00.ProtocolsType supportedCommunicationProtocols)
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.wns.x00.ProtocolsType target = null;
                target = (net.opengis.wns.x00.ProtocolsType)get_store().find_element_user(SUPPORTEDCOMMUNICATIONPROTOCOLS$0, 0);
                if (target == null)
                {
                    target = (net.opengis.wns.x00.ProtocolsType)get_store().add_element_user(SUPPORTEDCOMMUNICATIONPROTOCOLS$0);
                }
                target.set(supportedCommunicationProtocols);
            }
        }
        
        /**
         * Appends and returns a new empty "SupportedCommunicationProtocols" element
         */
        public net.opengis.wns.x00.ProtocolsType addNewSupportedCommunicationProtocols()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.wns.x00.ProtocolsType target = null;
                target = (net.opengis.wns.x00.ProtocolsType)get_store().add_element_user(SUPPORTEDCOMMUNICATIONPROTOCOLS$0);
                return target;
            }
        }
        
        /**
         * Gets the "MaxTTLOfMessages" element
         */
        public org.apache.xmlbeans.GDuration getMaxTTLOfMessages()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAXTTLOFMESSAGES$2, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getGDurationValue();
            }
        }
        
        /**
         * Gets (as xml) the "MaxTTLOfMessages" element
         */
        public org.apache.xmlbeans.XmlDuration xgetMaxTTLOfMessages()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlDuration target = null;
                target = (org.apache.xmlbeans.XmlDuration)get_store().find_element_user(MAXTTLOFMESSAGES$2, 0);
                return target;
            }
        }
        
        /**
         * Sets the "MaxTTLOfMessages" element
         */
        public void setMaxTTLOfMessages(org.apache.xmlbeans.GDuration maxTTLOfMessages)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAXTTLOFMESSAGES$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MAXTTLOFMESSAGES$2);
                }
                target.setGDurationValue(maxTTLOfMessages);
            }
        }
        
        /**
         * Sets (as xml) the "MaxTTLOfMessages" element
         */
        public void xsetMaxTTLOfMessages(org.apache.xmlbeans.XmlDuration maxTTLOfMessages)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlDuration target = null;
                target = (org.apache.xmlbeans.XmlDuration)get_store().find_element_user(MAXTTLOFMESSAGES$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlDuration)get_store().add_element_user(MAXTTLOFMESSAGES$2);
                }
                target.set(maxTTLOfMessages);
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy