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

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

There is a newer version: 4.5.69
Show newest version
/*
 * XML Type:  tLocalTask
 * Namespace: http://docs.oasis-open.org/ns/bpel4people/ws-humantask/200803
 * Java type: org.wso2.carbon.humantask.TLocalTask
 *
 * Automatically generated - do not modify.
 */
package org.wso2.carbon.humantask.impl;
/**
 * An XML tLocalTask(@http://docs.oasis-open.org/ns/bpel4people/ws-humantask/200803).
 *
 * This is a complex type.
 */
public class TLocalTaskImpl extends org.wso2.carbon.humantask.impl.TExtensibleElementsImpl implements org.wso2.carbon.humantask.TLocalTask
{
    private static final long serialVersionUID = 1L;
    
    public TLocalTaskImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName PRIORITY$0 = 
        new javax.xml.namespace.QName("http://docs.oasis-open.org/ns/bpel4people/ws-humantask/200803", "priority");
    private static final javax.xml.namespace.QName PEOPLEASSIGNMENTS$2 = 
        new javax.xml.namespace.QName("http://docs.oasis-open.org/ns/bpel4people/ws-humantask/200803", "peopleAssignments");
    private static final javax.xml.namespace.QName REFERENCE$4 = 
        new javax.xml.namespace.QName("", "reference");
    
    
    /**
     * Gets the "priority" element
     */
    public org.wso2.carbon.humantask.TPriorityExpr getPriority()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.wso2.carbon.humantask.TPriorityExpr target = null;
            target = (org.wso2.carbon.humantask.TPriorityExpr)get_store().find_element_user(PRIORITY$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "priority" element
     */
    public boolean isSetPriority()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PRIORITY$0) != 0;
        }
    }
    
    /**
     * Sets the "priority" element
     */
    public void setPriority(org.wso2.carbon.humantask.TPriorityExpr priority)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.wso2.carbon.humantask.TPriorityExpr target = null;
            target = (org.wso2.carbon.humantask.TPriorityExpr)get_store().find_element_user(PRIORITY$0, 0);
            if (target == null)
            {
                target = (org.wso2.carbon.humantask.TPriorityExpr)get_store().add_element_user(PRIORITY$0);
            }
            target.set(priority);
        }
    }
    
    /**
     * Appends and returns a new empty "priority" element
     */
    public org.wso2.carbon.humantask.TPriorityExpr addNewPriority()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.wso2.carbon.humantask.TPriorityExpr target = null;
            target = (org.wso2.carbon.humantask.TPriorityExpr)get_store().add_element_user(PRIORITY$0);
            return target;
        }
    }
    
    /**
     * Unsets the "priority" element
     */
    public void unsetPriority()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PRIORITY$0, 0);
        }
    }
    
    /**
     * Gets the "peopleAssignments" element
     */
    public org.wso2.carbon.humantask.TPeopleAssignments getPeopleAssignments()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.wso2.carbon.humantask.TPeopleAssignments target = null;
            target = (org.wso2.carbon.humantask.TPeopleAssignments)get_store().find_element_user(PEOPLEASSIGNMENTS$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "peopleAssignments" element
     */
    public boolean isSetPeopleAssignments()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PEOPLEASSIGNMENTS$2) != 0;
        }
    }
    
    /**
     * Sets the "peopleAssignments" element
     */
    public void setPeopleAssignments(org.wso2.carbon.humantask.TPeopleAssignments peopleAssignments)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.wso2.carbon.humantask.TPeopleAssignments target = null;
            target = (org.wso2.carbon.humantask.TPeopleAssignments)get_store().find_element_user(PEOPLEASSIGNMENTS$2, 0);
            if (target == null)
            {
                target = (org.wso2.carbon.humantask.TPeopleAssignments)get_store().add_element_user(PEOPLEASSIGNMENTS$2);
            }
            target.set(peopleAssignments);
        }
    }
    
    /**
     * Appends and returns a new empty "peopleAssignments" element
     */
    public org.wso2.carbon.humantask.TPeopleAssignments addNewPeopleAssignments()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.wso2.carbon.humantask.TPeopleAssignments target = null;
            target = (org.wso2.carbon.humantask.TPeopleAssignments)get_store().add_element_user(PEOPLEASSIGNMENTS$2);
            return target;
        }
    }
    
    /**
     * Unsets the "peopleAssignments" element
     */
    public void unsetPeopleAssignments()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PEOPLEASSIGNMENTS$2, 0);
        }
    }
    
    /**
     * Gets the "reference" attribute
     */
    public javax.xml.namespace.QName getReference()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(REFERENCE$4);
            if (target == null)
            {
                return null;
            }
            return target.getQNameValue();
        }
    }
    
    /**
     * Gets (as xml) the "reference" attribute
     */
    public org.apache.xmlbeans.XmlQName xgetReference()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlQName target = null;
            target = (org.apache.xmlbeans.XmlQName)get_store().find_attribute_user(REFERENCE$4);
            return target;
        }
    }
    
    /**
     * Sets the "reference" attribute
     */
    public void setReference(javax.xml.namespace.QName reference)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(REFERENCE$4);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(REFERENCE$4);
            }
            target.setQNameValue(reference);
        }
    }
    
    /**
     * Sets (as xml) the "reference" attribute
     */
    public void xsetReference(org.apache.xmlbeans.XmlQName reference)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlQName target = null;
            target = (org.apache.xmlbeans.XmlQName)get_store().find_attribute_user(REFERENCE$4);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlQName)get_store().add_attribute_user(REFERENCE$4);
            }
            target.set(reference);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy