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

org.apache.airavata.schemas.wec.impl.WorkflowSchedulingContextDocumentImpl Maven / Gradle / Ivy

/*
 * An XML document type.
 * Localname: workflow-scheduling-context
 * Namespace: http://schemas.airavata.apache.org/workflow-execution-context
 * Java type: org.apache.airavata.schemas.wec.WorkflowSchedulingContextDocument
 *
 * Automatically generated - do not modify.
 */
package org.apache.airavata.schemas.wec.impl;
/**
 * A document containing one workflow-scheduling-context(@http://schemas.airavata.apache.org/workflow-execution-context) element.
 *
 * This is a complex type.
 */
public class WorkflowSchedulingContextDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.airavata.schemas.wec.WorkflowSchedulingContextDocument
{
    private static final long serialVersionUID = 1L;
    
    public WorkflowSchedulingContextDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName WORKFLOWSCHEDULINGCONTEXT$0 = 
        new javax.xml.namespace.QName("http://schemas.airavata.apache.org/workflow-execution-context", "workflow-scheduling-context");
    
    
    /**
     * Gets the "workflow-scheduling-context" element
     */
    public org.apache.airavata.schemas.wec.WorkflowSchedulingContextDocument.WorkflowSchedulingContext getWorkflowSchedulingContext()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.airavata.schemas.wec.WorkflowSchedulingContextDocument.WorkflowSchedulingContext target = null;
            target = (org.apache.airavata.schemas.wec.WorkflowSchedulingContextDocument.WorkflowSchedulingContext)get_store().find_element_user(WORKFLOWSCHEDULINGCONTEXT$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "workflow-scheduling-context" element
     */
    public void setWorkflowSchedulingContext(org.apache.airavata.schemas.wec.WorkflowSchedulingContextDocument.WorkflowSchedulingContext workflowSchedulingContext)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.airavata.schemas.wec.WorkflowSchedulingContextDocument.WorkflowSchedulingContext target = null;
            target = (org.apache.airavata.schemas.wec.WorkflowSchedulingContextDocument.WorkflowSchedulingContext)get_store().find_element_user(WORKFLOWSCHEDULINGCONTEXT$0, 0);
            if (target == null)
            {
                target = (org.apache.airavata.schemas.wec.WorkflowSchedulingContextDocument.WorkflowSchedulingContext)get_store().add_element_user(WORKFLOWSCHEDULINGCONTEXT$0);
            }
            target.set(workflowSchedulingContext);
        }
    }
    
    /**
     * Appends and returns a new empty "workflow-scheduling-context" element
     */
    public org.apache.airavata.schemas.wec.WorkflowSchedulingContextDocument.WorkflowSchedulingContext addNewWorkflowSchedulingContext()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.airavata.schemas.wec.WorkflowSchedulingContextDocument.WorkflowSchedulingContext target = null;
            target = (org.apache.airavata.schemas.wec.WorkflowSchedulingContextDocument.WorkflowSchedulingContext)get_store().add_element_user(WORKFLOWSCHEDULINGCONTEXT$0);
            return target;
        }
    }
    /**
     * An XML workflow-scheduling-context(@http://schemas.airavata.apache.org/workflow-execution-context).
     *
     * This is a complex type.
     */
    public static class WorkflowSchedulingContextImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.airavata.schemas.wec.WorkflowSchedulingContextDocument.WorkflowSchedulingContext
    {
        private static final long serialVersionUID = 1L;
        
        public WorkflowSchedulingContextImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName APPLICATIONSCHEDULINGCONTEXT$0 = 
            new javax.xml.namespace.QName("http://schemas.airavata.apache.org/workflow-execution-context", "application-scheduling-context");
        
        
        /**
         * Gets array of all "application-scheduling-context" elements
         */
        public org.apache.airavata.schemas.wec.ApplicationSchedulingContextDocument.ApplicationSchedulingContext[] getApplicationSchedulingContextArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List targetList = new java.util.ArrayList();
                get_store().find_all_element_users(APPLICATIONSCHEDULINGCONTEXT$0, targetList);
                org.apache.airavata.schemas.wec.ApplicationSchedulingContextDocument.ApplicationSchedulingContext[] result = new org.apache.airavata.schemas.wec.ApplicationSchedulingContextDocument.ApplicationSchedulingContext[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "application-scheduling-context" element
         */
        public org.apache.airavata.schemas.wec.ApplicationSchedulingContextDocument.ApplicationSchedulingContext getApplicationSchedulingContextArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.airavata.schemas.wec.ApplicationSchedulingContextDocument.ApplicationSchedulingContext target = null;
                target = (org.apache.airavata.schemas.wec.ApplicationSchedulingContextDocument.ApplicationSchedulingContext)get_store().find_element_user(APPLICATIONSCHEDULINGCONTEXT$0, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "application-scheduling-context" element
         */
        public int sizeOfApplicationSchedulingContextArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(APPLICATIONSCHEDULINGCONTEXT$0);
            }
        }
        
        /**
         * Sets array of all "application-scheduling-context" element
         */
        public void setApplicationSchedulingContextArray(org.apache.airavata.schemas.wec.ApplicationSchedulingContextDocument.ApplicationSchedulingContext[] applicationSchedulingContextArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(applicationSchedulingContextArray, APPLICATIONSCHEDULINGCONTEXT$0);
            }
        }
        
        /**
         * Sets ith "application-scheduling-context" element
         */
        public void setApplicationSchedulingContextArray(int i, org.apache.airavata.schemas.wec.ApplicationSchedulingContextDocument.ApplicationSchedulingContext applicationSchedulingContext)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.airavata.schemas.wec.ApplicationSchedulingContextDocument.ApplicationSchedulingContext target = null;
                target = (org.apache.airavata.schemas.wec.ApplicationSchedulingContextDocument.ApplicationSchedulingContext)get_store().find_element_user(APPLICATIONSCHEDULINGCONTEXT$0, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.set(applicationSchedulingContext);
            }
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "application-scheduling-context" element
         */
        public org.apache.airavata.schemas.wec.ApplicationSchedulingContextDocument.ApplicationSchedulingContext insertNewApplicationSchedulingContext(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.airavata.schemas.wec.ApplicationSchedulingContextDocument.ApplicationSchedulingContext target = null;
                target = (org.apache.airavata.schemas.wec.ApplicationSchedulingContextDocument.ApplicationSchedulingContext)get_store().insert_element_user(APPLICATIONSCHEDULINGCONTEXT$0, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "application-scheduling-context" element
         */
        public org.apache.airavata.schemas.wec.ApplicationSchedulingContextDocument.ApplicationSchedulingContext addNewApplicationSchedulingContext()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.airavata.schemas.wec.ApplicationSchedulingContextDocument.ApplicationSchedulingContext target = null;
                target = (org.apache.airavata.schemas.wec.ApplicationSchedulingContextDocument.ApplicationSchedulingContext)get_store().add_element_user(APPLICATIONSCHEDULINGCONTEXT$0);
                return target;
            }
        }
        
        /**
         * Removes the ith "application-scheduling-context" element
         */
        public void removeApplicationSchedulingContext(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(APPLICATIONSCHEDULINGCONTEXT$0, i);
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy