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

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

There is a newer version: 4.5.69
Show newest version
/*
 * XML Type:  tPotentialOwnerAssignment
 * Namespace: http://docs.oasis-open.org/ns/bpel4people/ws-humantask/200803
 * Java type: org.wso2.carbon.humantask.TPotentialOwnerAssignment
 *
 * Automatically generated - do not modify.
 */
package org.wso2.carbon.humantask.impl;
/**
 * An XML tPotentialOwnerAssignment(@http://docs.oasis-open.org/ns/bpel4people/ws-humantask/200803).
 *
 * This is a complex type.
 */
public class TPotentialOwnerAssignmentImpl extends org.wso2.carbon.humantask.impl.TGenericHumanRoleAssignmentBaseImpl implements org.wso2.carbon.humantask.TPotentialOwnerAssignment
{
    private static final long serialVersionUID = 1L;
    
    public TPotentialOwnerAssignmentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName FROM$0 = 
        new javax.xml.namespace.QName("http://docs.oasis-open.org/ns/bpel4people/ws-humantask/200803", "from");
    private static final javax.xml.namespace.QName PARALLEL$2 = 
        new javax.xml.namespace.QName("http://docs.oasis-open.org/ns/bpel4people/ws-humantask/200803", "parallel");
    private static final javax.xml.namespace.QName SEQUENCE$4 = 
        new javax.xml.namespace.QName("http://docs.oasis-open.org/ns/bpel4people/ws-humantask/200803", "sequence");
    
    
    /**
     * Gets the "from" element
     */
    public org.wso2.carbon.humantask.TFrom getFrom()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.wso2.carbon.humantask.TFrom target = null;
            target = (org.wso2.carbon.humantask.TFrom)get_store().find_element_user(FROM$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "from" element
     */
    public boolean isSetFrom()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(FROM$0) != 0;
        }
    }
    
    /**
     * Sets the "from" element
     */
    public void setFrom(org.wso2.carbon.humantask.TFrom from)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.wso2.carbon.humantask.TFrom target = null;
            target = (org.wso2.carbon.humantask.TFrom)get_store().find_element_user(FROM$0, 0);
            if (target == null)
            {
                target = (org.wso2.carbon.humantask.TFrom)get_store().add_element_user(FROM$0);
            }
            target.set(from);
        }
    }
    
    /**
     * Appends and returns a new empty "from" element
     */
    public org.wso2.carbon.humantask.TFrom addNewFrom()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.wso2.carbon.humantask.TFrom target = null;
            target = (org.wso2.carbon.humantask.TFrom)get_store().add_element_user(FROM$0);
            return target;
        }
    }
    
    /**
     * Unsets the "from" element
     */
    public void unsetFrom()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(FROM$0, 0);
        }
    }
    
    /**
     * Gets the "parallel" element
     */
    public org.wso2.carbon.humantask.TParallel getParallel()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.wso2.carbon.humantask.TParallel target = null;
            target = (org.wso2.carbon.humantask.TParallel)get_store().find_element_user(PARALLEL$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "parallel" element
     */
    public boolean isSetParallel()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PARALLEL$2) != 0;
        }
    }
    
    /**
     * Sets the "parallel" element
     */
    public void setParallel(org.wso2.carbon.humantask.TParallel parallel)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.wso2.carbon.humantask.TParallel target = null;
            target = (org.wso2.carbon.humantask.TParallel)get_store().find_element_user(PARALLEL$2, 0);
            if (target == null)
            {
                target = (org.wso2.carbon.humantask.TParallel)get_store().add_element_user(PARALLEL$2);
            }
            target.set(parallel);
        }
    }
    
    /**
     * Appends and returns a new empty "parallel" element
     */
    public org.wso2.carbon.humantask.TParallel addNewParallel()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.wso2.carbon.humantask.TParallel target = null;
            target = (org.wso2.carbon.humantask.TParallel)get_store().add_element_user(PARALLEL$2);
            return target;
        }
    }
    
    /**
     * Unsets the "parallel" element
     */
    public void unsetParallel()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PARALLEL$2, 0);
        }
    }
    
    /**
     * Gets the "sequence" element
     */
    public org.wso2.carbon.humantask.TSequence getSequence()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.wso2.carbon.humantask.TSequence target = null;
            target = (org.wso2.carbon.humantask.TSequence)get_store().find_element_user(SEQUENCE$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "sequence" element
     */
    public boolean isSetSequence()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SEQUENCE$4) != 0;
        }
    }
    
    /**
     * Sets the "sequence" element
     */
    public void setSequence(org.wso2.carbon.humantask.TSequence sequence)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.wso2.carbon.humantask.TSequence target = null;
            target = (org.wso2.carbon.humantask.TSequence)get_store().find_element_user(SEQUENCE$4, 0);
            if (target == null)
            {
                target = (org.wso2.carbon.humantask.TSequence)get_store().add_element_user(SEQUENCE$4);
            }
            target.set(sequence);
        }
    }
    
    /**
     * Appends and returns a new empty "sequence" element
     */
    public org.wso2.carbon.humantask.TSequence addNewSequence()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.wso2.carbon.humantask.TSequence target = null;
            target = (org.wso2.carbon.humantask.TSequence)get_store().add_element_user(SEQUENCE$4);
            return target;
        }
    }
    
    /**
     * Unsets the "sequence" element
     */
    public void unsetSequence()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SEQUENCE$4, 0);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy