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

org.openehr.schemas.v1.impl.EXTRACTFOLDERImpl Maven / Gradle / Ivy

/*
 * XML Type:  EXTRACT_FOLDER
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.EXTRACTFOLDER
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML EXTRACT_FOLDER(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class EXTRACTFOLDERImpl extends org.openehr.schemas.v1.impl.LOCATABLEImpl implements org.openehr.schemas.v1.EXTRACTFOLDER
{
    private static final long serialVersionUID = 1L;
    
    public EXTRACTFOLDERImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ITEMS$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "items");
    private static final javax.xml.namespace.QName FOLDERS$2 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "folders");
    
    
    /**
     * Gets array of all "items" elements
     */
    public org.openehr.schemas.v1.OBJECTREF[] getItemsArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(ITEMS$0, targetList);
            org.openehr.schemas.v1.OBJECTREF[] result = new org.openehr.schemas.v1.OBJECTREF[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "items" element
     */
    public org.openehr.schemas.v1.OBJECTREF getItemsArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.OBJECTREF target = null;
            target = (org.openehr.schemas.v1.OBJECTREF)get_store().find_element_user(ITEMS$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "items" element
     */
    public int sizeOfItemsArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ITEMS$0);
        }
    }
    
    /**
     * Sets array of all "items" element
     */
    public void setItemsArray(org.openehr.schemas.v1.OBJECTREF[] itemsArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(itemsArray, ITEMS$0);
        }
    }
    
    /**
     * Sets ith "items" element
     */
    public void setItemsArray(int i, org.openehr.schemas.v1.OBJECTREF items)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.OBJECTREF target = null;
            target = (org.openehr.schemas.v1.OBJECTREF)get_store().find_element_user(ITEMS$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(items);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "items" element
     */
    public org.openehr.schemas.v1.OBJECTREF insertNewItems(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.OBJECTREF target = null;
            target = (org.openehr.schemas.v1.OBJECTREF)get_store().insert_element_user(ITEMS$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "items" element
     */
    public org.openehr.schemas.v1.OBJECTREF addNewItems()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.OBJECTREF target = null;
            target = (org.openehr.schemas.v1.OBJECTREF)get_store().add_element_user(ITEMS$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "items" element
     */
    public void removeItems(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ITEMS$0, i);
        }
    }
    
    /**
     * Gets array of all "folders" elements
     */
    public org.openehr.schemas.v1.EXTRACTFOLDER[] getFoldersArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(FOLDERS$2, targetList);
            org.openehr.schemas.v1.EXTRACTFOLDER[] result = new org.openehr.schemas.v1.EXTRACTFOLDER[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "folders" element
     */
    public org.openehr.schemas.v1.EXTRACTFOLDER getFoldersArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.EXTRACTFOLDER target = null;
            target = (org.openehr.schemas.v1.EXTRACTFOLDER)get_store().find_element_user(FOLDERS$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "folders" element
     */
    public int sizeOfFoldersArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(FOLDERS$2);
        }
    }
    
    /**
     * Sets array of all "folders" element
     */
    public void setFoldersArray(org.openehr.schemas.v1.EXTRACTFOLDER[] foldersArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(foldersArray, FOLDERS$2);
        }
    }
    
    /**
     * Sets ith "folders" element
     */
    public void setFoldersArray(int i, org.openehr.schemas.v1.EXTRACTFOLDER folders)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.EXTRACTFOLDER target = null;
            target = (org.openehr.schemas.v1.EXTRACTFOLDER)get_store().find_element_user(FOLDERS$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(folders);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "folders" element
     */
    public org.openehr.schemas.v1.EXTRACTFOLDER insertNewFolders(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.EXTRACTFOLDER target = null;
            target = (org.openehr.schemas.v1.EXTRACTFOLDER)get_store().insert_element_user(FOLDERS$2, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "folders" element
     */
    public org.openehr.schemas.v1.EXTRACTFOLDER addNewFolders()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.EXTRACTFOLDER target = null;
            target = (org.openehr.schemas.v1.EXTRACTFOLDER)get_store().add_element_user(FOLDERS$2);
            return target;
        }
    }
    
    /**
     * Removes the ith "folders" element
     */
    public void removeFolders(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(FOLDERS$2, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy