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

org.wso2.carbon.humantask.impl.TTasksImpl Maven / Gradle / Ivy

There is a newer version: 4.5.69
Show newest version
/*
 * XML Type:  tTasks
 * Namespace: http://docs.oasis-open.org/ns/bpel4people/ws-humantask/200803
 * Java type: org.wso2.carbon.humantask.TTasks
 *
 * Automatically generated - do not modify.
 */
package org.wso2.carbon.humantask.impl;
/**
 * An XML tTasks(@http://docs.oasis-open.org/ns/bpel4people/ws-humantask/200803).
 *
 * This is a complex type.
 */
public class TTasksImpl extends org.wso2.carbon.humantask.impl.TExtensibleElementsImpl implements org.wso2.carbon.humantask.TTasks
{
    private static final long serialVersionUID = 1L;
    
    public TTasksImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName TASK$0 = 
        new javax.xml.namespace.QName("http://docs.oasis-open.org/ns/bpel4people/ws-humantask/200803", "task");
    
    
    /**
     * Gets array of all "task" elements
     */
    public org.wso2.carbon.humantask.TTask[] getTaskArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(TASK$0, targetList);
            org.wso2.carbon.humantask.TTask[] result = new org.wso2.carbon.humantask.TTask[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "task" element
     */
    public org.wso2.carbon.humantask.TTask getTaskArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.wso2.carbon.humantask.TTask target = null;
            target = (org.wso2.carbon.humantask.TTask)get_store().find_element_user(TASK$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "task" element
     */
    public int sizeOfTaskArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TASK$0);
        }
    }
    
    /**
     * Sets array of all "task" element
     */
    public void setTaskArray(org.wso2.carbon.humantask.TTask[] taskArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(taskArray, TASK$0);
        }
    }
    
    /**
     * Sets ith "task" element
     */
    public void setTaskArray(int i, org.wso2.carbon.humantask.TTask task)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.wso2.carbon.humantask.TTask target = null;
            target = (org.wso2.carbon.humantask.TTask)get_store().find_element_user(TASK$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(task);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "task" element
     */
    public org.wso2.carbon.humantask.TTask insertNewTask(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.wso2.carbon.humantask.TTask target = null;
            target = (org.wso2.carbon.humantask.TTask)get_store().insert_element_user(TASK$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "task" element
     */
    public org.wso2.carbon.humantask.TTask addNewTask()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.wso2.carbon.humantask.TTask target = null;
            target = (org.wso2.carbon.humantask.TTask)get_store().add_element_user(TASK$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "task" element
     */
    public void removeTask(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TASK$0, i);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy