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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy