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

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

There is a newer version: 4.5.69
Show newest version
/*
 * An XML document type.
 * Localname: task
 * Namespace: http://docs.oasis-open.org/ns/bpel4people/ws-humantask/200803
 * Java type: org.wso2.carbon.humantask.TaskDocument
 *
 * Automatically generated - do not modify.
 */
package org.wso2.carbon.humantask.impl;
/**
 * A document containing one task(@http://docs.oasis-open.org/ns/bpel4people/ws-humantask/200803) element.
 *
 * This is a complex type.
 */
public class TaskDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.wso2.carbon.humantask.TaskDocument
{
    private static final long serialVersionUID = 1L;
    
    public TaskDocumentImpl(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 the "task" element
     */
    public org.wso2.carbon.humantask.TTask getTask()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.wso2.carbon.humantask.TTask target = null;
            target = (org.wso2.carbon.humantask.TTask)get_store().find_element_user(TASK$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "task" element
     */
    public void setTask(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, 0);
            if (target == null)
            {
                target = (org.wso2.carbon.humantask.TTask)get_store().add_element_user(TASK$0);
            }
            target.set(task);
        }
    }
    
    /**
     * Appends and returns a new empty "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;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy