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

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

There is a newer version: 2.7.0
Show newest version
/*
 * An XML document type.
 * Localname: NotificationAbilities
 * Namespace: http://www.opengis.net/wns/0.0
 * Java type: net.opengis.wns.x00.NotificationAbilitiesDocument
 *
 * Automatically generated - do not modify.
 */
package net.opengis.wns.x00.impl;
/**
 * A document containing one NotificationAbilities(@http://www.opengis.net/wns/0.0) element.
 *
 * This is a complex type.
 */
public class NotificationAbilitiesDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.wns.x00.NotificationAbilitiesDocument
{
    private static final long serialVersionUID = 1L;
    
    public NotificationAbilitiesDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName NOTIFICATIONABILITIES$0 = 
        new javax.xml.namespace.QName("http://www.opengis.net/wns/0.0", "NotificationAbilities");
    
    
    /**
     * Gets the "NotificationAbilities" element
     */
    public net.opengis.wns.x00.NotificationAbilitiesDocument.NotificationAbilities getNotificationAbilities()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.wns.x00.NotificationAbilitiesDocument.NotificationAbilities target = null;
            target = (net.opengis.wns.x00.NotificationAbilitiesDocument.NotificationAbilities)get_store().find_element_user(NOTIFICATIONABILITIES$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "NotificationAbilities" element
     */
    public void setNotificationAbilities(net.opengis.wns.x00.NotificationAbilitiesDocument.NotificationAbilities notificationAbilities)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.wns.x00.NotificationAbilitiesDocument.NotificationAbilities target = null;
            target = (net.opengis.wns.x00.NotificationAbilitiesDocument.NotificationAbilities)get_store().find_element_user(NOTIFICATIONABILITIES$0, 0);
            if (target == null)
            {
                target = (net.opengis.wns.x00.NotificationAbilitiesDocument.NotificationAbilities)get_store().add_element_user(NOTIFICATIONABILITIES$0);
            }
            target.set(notificationAbilities);
        }
    }
    
    /**
     * Appends and returns a new empty "NotificationAbilities" element
     */
    public net.opengis.wns.x00.NotificationAbilitiesDocument.NotificationAbilities addNewNotificationAbilities()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.wns.x00.NotificationAbilitiesDocument.NotificationAbilities target = null;
            target = (net.opengis.wns.x00.NotificationAbilitiesDocument.NotificationAbilities)get_store().add_element_user(NOTIFICATIONABILITIES$0);
            return target;
        }
    }
    /**
     * An XML NotificationAbilities(@http://www.opengis.net/wns/0.0).
     *
     * This is a complex type.
     */
    public static class NotificationAbilitiesImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.wns.x00.NotificationAbilitiesDocument.NotificationAbilities
    {
        private static final long serialVersionUID = 1L;
        
        public NotificationAbilitiesImpl(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 SUPPORTEDCOMMUNICATIONFORMATS$2 = 
            new javax.xml.namespace.QName("http://www.opengis.net/wns/0.0", "SupportedCommunicationFormats");
        
        
        /**
         * Gets the "SupportedCommunicationProtocols" element
         */
        public net.opengis.wns.x00.SupportedCommunicationProtocolsType getSupportedCommunicationProtocols()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.wns.x00.SupportedCommunicationProtocolsType target = null;
                target = (net.opengis.wns.x00.SupportedCommunicationProtocolsType)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.SupportedCommunicationProtocolsType supportedCommunicationProtocols)
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.wns.x00.SupportedCommunicationProtocolsType target = null;
                target = (net.opengis.wns.x00.SupportedCommunicationProtocolsType)get_store().find_element_user(SUPPORTEDCOMMUNICATIONPROTOCOLS$0, 0);
                if (target == null)
                {
                    target = (net.opengis.wns.x00.SupportedCommunicationProtocolsType)get_store().add_element_user(SUPPORTEDCOMMUNICATIONPROTOCOLS$0);
                }
                target.set(supportedCommunicationProtocols);
            }
        }
        
        /**
         * Appends and returns a new empty "SupportedCommunicationProtocols" element
         */
        public net.opengis.wns.x00.SupportedCommunicationProtocolsType addNewSupportedCommunicationProtocols()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.wns.x00.SupportedCommunicationProtocolsType target = null;
                target = (net.opengis.wns.x00.SupportedCommunicationProtocolsType)get_store().add_element_user(SUPPORTEDCOMMUNICATIONPROTOCOLS$0);
                return target;
            }
        }
        
        /**
         * Gets the "SupportedCommunicationFormats" element
         */
        public net.opengis.wns.x00.NotificationAbilitiesDocument.NotificationAbilities.SupportedCommunicationFormats getSupportedCommunicationFormats()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.wns.x00.NotificationAbilitiesDocument.NotificationAbilities.SupportedCommunicationFormats target = null;
                target = (net.opengis.wns.x00.NotificationAbilitiesDocument.NotificationAbilities.SupportedCommunicationFormats)get_store().find_element_user(SUPPORTEDCOMMUNICATIONFORMATS$2, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * Sets the "SupportedCommunicationFormats" element
         */
        public void setSupportedCommunicationFormats(net.opengis.wns.x00.NotificationAbilitiesDocument.NotificationAbilities.SupportedCommunicationFormats supportedCommunicationFormats)
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.wns.x00.NotificationAbilitiesDocument.NotificationAbilities.SupportedCommunicationFormats target = null;
                target = (net.opengis.wns.x00.NotificationAbilitiesDocument.NotificationAbilities.SupportedCommunicationFormats)get_store().find_element_user(SUPPORTEDCOMMUNICATIONFORMATS$2, 0);
                if (target == null)
                {
                    target = (net.opengis.wns.x00.NotificationAbilitiesDocument.NotificationAbilities.SupportedCommunicationFormats)get_store().add_element_user(SUPPORTEDCOMMUNICATIONFORMATS$2);
                }
                target.set(supportedCommunicationFormats);
            }
        }
        
        /**
         * Appends and returns a new empty "SupportedCommunicationFormats" element
         */
        public net.opengis.wns.x00.NotificationAbilitiesDocument.NotificationAbilities.SupportedCommunicationFormats addNewSupportedCommunicationFormats()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.wns.x00.NotificationAbilitiesDocument.NotificationAbilities.SupportedCommunicationFormats target = null;
                target = (net.opengis.wns.x00.NotificationAbilitiesDocument.NotificationAbilities.SupportedCommunicationFormats)get_store().add_element_user(SUPPORTEDCOMMUNICATIONFORMATS$2);
                return target;
            }
        }
        /**
         * An XML SupportedCommunicationFormats(@http://www.opengis.net/wns/0.0).
         *
         * This is a complex type.
         */
        public static class SupportedCommunicationFormatsImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.wns.x00.NotificationAbilitiesDocument.NotificationAbilities.SupportedCommunicationFormats
        {
            private static final long serialVersionUID = 1L;
            
            public SupportedCommunicationFormatsImpl(org.apache.xmlbeans.SchemaType sType)
            {
                super(sType);
            }
            
            private static final javax.xml.namespace.QName NOTIFICATIONFORMAT$0 = 
                new javax.xml.namespace.QName("http://www.opengis.net/wns/0.0", "NotificationFormat");
            
            
            /**
             * Gets array of all "NotificationFormat" elements
             */
            public net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat.Enum[] getNotificationFormatArray()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    java.util.List targetList = new java.util.ArrayList();
                    get_store().find_all_element_users(NOTIFICATIONFORMAT$0, targetList);
                    net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat.Enum[] result = new net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat.Enum[targetList.size()];
                    for (int i = 0, len = targetList.size() ; i < len ; i++)
                        result[i] = (net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat.Enum)((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getEnumValue();
                    return result;
                }
            }
            
            /**
             * Gets ith "NotificationFormat" element
             */
            public net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat.Enum getNotificationFormatArray(int i)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NOTIFICATIONFORMAT$0, i);
                    if (target == null)
                    {
                      throw new IndexOutOfBoundsException();
                    }
                    return (net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat.Enum)target.getEnumValue();
                }
            }
            
            /**
             * Gets (as xml) array of all "NotificationFormat" elements
             */
            public net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat[] xgetNotificationFormatArray()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    java.util.List targetList = new java.util.ArrayList();
                    get_store().find_all_element_users(NOTIFICATIONFORMAT$0, targetList);
                    net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat[] result = new net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat[targetList.size()];
                    targetList.toArray(result);
                    return result;
                }
            }
            
            /**
             * Gets (as xml) ith "NotificationFormat" element
             */
            public net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat xgetNotificationFormatArray(int i)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat target = null;
                    target = (net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat)get_store().find_element_user(NOTIFICATIONFORMAT$0, i);
                    if (target == null)
                    {
                      throw new IndexOutOfBoundsException();
                    }
                    return (net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat)target;
                }
            }
            
            /**
             * Returns number of "NotificationFormat" element
             */
            public int sizeOfNotificationFormatArray()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    return get_store().count_elements(NOTIFICATIONFORMAT$0);
                }
            }
            
            /**
             * Sets array of all "NotificationFormat" element
             */
            public void setNotificationFormatArray(net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat.Enum[] notificationFormatArray)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    arraySetterHelper(notificationFormatArray, NOTIFICATIONFORMAT$0);
                }
            }
            
            /**
             * Sets ith "NotificationFormat" element
             */
            public void setNotificationFormatArray(int i, net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat.Enum notificationFormat)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NOTIFICATIONFORMAT$0, i);
                    if (target == null)
                    {
                      throw new IndexOutOfBoundsException();
                    }
                    target.setEnumValue(notificationFormat);
                }
            }
            
            /**
             * Sets (as xml) array of all "NotificationFormat" element
             */
            public void xsetNotificationFormatArray(net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat[]notificationFormatArray)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    arraySetterHelper(notificationFormatArray, NOTIFICATIONFORMAT$0);
                }
            }
            
            /**
             * Sets (as xml) ith "NotificationFormat" element
             */
            public void xsetNotificationFormatArray(int i, net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat notificationFormat)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat target = null;
                    target = (net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat)get_store().find_element_user(NOTIFICATIONFORMAT$0, i);
                    if (target == null)
                    {
                      throw new IndexOutOfBoundsException();
                    }
                    target.set(notificationFormat);
                }
            }
            
            /**
             * Inserts the value as the ith "NotificationFormat" element
             */
            public void insertNotificationFormat(int i, net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat.Enum notificationFormat)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = 
                      (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(NOTIFICATIONFORMAT$0, i);
                    target.setEnumValue(notificationFormat);
                }
            }
            
            /**
             * Appends the value as the last "NotificationFormat" element
             */
            public void addNotificationFormat(net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat.Enum notificationFormat)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NOTIFICATIONFORMAT$0);
                    target.setEnumValue(notificationFormat);
                }
            }
            
            /**
             * Inserts and returns a new empty value (as xml) as the ith "NotificationFormat" element
             */
            public net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat insertNewNotificationFormat(int i)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat target = null;
                    target = (net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat)get_store().insert_element_user(NOTIFICATIONFORMAT$0, i);
                    return target;
                }
            }
            
            /**
             * Appends and returns a new empty value (as xml) as the last "NotificationFormat" element
             */
            public net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat addNewNotificationFormat()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat target = null;
                    target = (net.opengis.wns.x00.NotificationFormatDocument.NotificationFormat)get_store().add_element_user(NOTIFICATIONFORMAT$0);
                    return target;
                }
            }
            
            /**
             * Removes the ith "NotificationFormat" element
             */
            public void removeNotificationFormat(int i)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    get_store().remove_element(NOTIFICATIONFORMAT$0, i);
                }
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy