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

org.example.wsHT.impl.XMLTNotificationsImpl Maven / Gradle / Ivy

The newest version!
/*
 * XML Type:  tNotifications
 * Namespace: http://www.example.org/WS-HT
 * Java type: org.example.wsHT.XMLTNotifications
 *
 * Automatically generated - do not modify.
 */
package org.example.wsHT.impl;
/**
 * An XML tNotifications(@http://www.example.org/WS-HT).
 *
 * This is a complex type.
 */
public class XMLTNotificationsImpl extends org.example.wsHT.impl.XMLTExtensibleElementsImpl implements org.example.wsHT.XMLTNotifications
{
    private static final long serialVersionUID = 1L;
    
    public XMLTNotificationsImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName NOTIFICATION$0 = 
        new javax.xml.namespace.QName("http://www.example.org/WS-HT", "notification");
    
    
    /**
     * Gets a List of "notification" elements
     */
    public java.util.List getNotificationList()
    {
        final class NotificationList extends java.util.AbstractList
        {
            public org.example.wsHT.XMLTNotification get(int i)
                { return XMLTNotificationsImpl.this.getNotificationArray(i); }
            
            public org.example.wsHT.XMLTNotification set(int i, org.example.wsHT.XMLTNotification o)
            {
                org.example.wsHT.XMLTNotification old = XMLTNotificationsImpl.this.getNotificationArray(i);
                XMLTNotificationsImpl.this.setNotificationArray(i, o);
                return old;
            }
            
            public void add(int i, org.example.wsHT.XMLTNotification o)
                { XMLTNotificationsImpl.this.insertNewNotification(i).set(o); }
            
            public org.example.wsHT.XMLTNotification remove(int i)
            {
                org.example.wsHT.XMLTNotification old = XMLTNotificationsImpl.this.getNotificationArray(i);
                XMLTNotificationsImpl.this.removeNotification(i);
                return old;
            }
            
            public int size()
                { return XMLTNotificationsImpl.this.sizeOfNotificationArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new NotificationList();
        }
    }
    
    /**
     * Gets array of all "notification" elements
     * @deprecated
     */
    public org.example.wsHT.XMLTNotification[] getNotificationArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(NOTIFICATION$0, targetList);
            org.example.wsHT.XMLTNotification[] result = new org.example.wsHT.XMLTNotification[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "notification" element
     */
    public org.example.wsHT.XMLTNotification getNotificationArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTNotification target = null;
            target = (org.example.wsHT.XMLTNotification)get_store().find_element_user(NOTIFICATION$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "notification" element
     */
    public int sizeOfNotificationArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(NOTIFICATION$0);
        }
    }
    
    /**
     * Sets array of all "notification" element
     */
    public void setNotificationArray(org.example.wsHT.XMLTNotification[] notificationArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(notificationArray, NOTIFICATION$0);
        }
    }
    
    /**
     * Sets ith "notification" element
     */
    public void setNotificationArray(int i, org.example.wsHT.XMLTNotification notification)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTNotification target = null;
            target = (org.example.wsHT.XMLTNotification)get_store().find_element_user(NOTIFICATION$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(notification);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "notification" element
     */
    public org.example.wsHT.XMLTNotification insertNewNotification(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTNotification target = null;
            target = (org.example.wsHT.XMLTNotification)get_store().insert_element_user(NOTIFICATION$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "notification" element
     */
    public org.example.wsHT.XMLTNotification addNewNotification()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTNotification target = null;
            target = (org.example.wsHT.XMLTNotification)get_store().add_element_user(NOTIFICATION$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "notification" element
     */
    public void removeNotification(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(NOTIFICATION$0, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy