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

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

/*
 * XML Type:  EHR_EXTRACT_CONTENT
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.EHREXTRACTCONTENT
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML EHR_EXTRACT_CONTENT(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class EHREXTRACTCONTENTImpl extends org.openehr.schemas.v1.impl.EXTRACTCONTENTImpl implements org.openehr.schemas.v1.EHREXTRACTCONTENT
{
    private static final long serialVersionUID = 1L;
    
    public EHREXTRACTCONTENTImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName EHRACCESS$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "ehr_access");
    private static final javax.xml.namespace.QName EHRSTATUS$2 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "ehr_status");
    private static final javax.xml.namespace.QName DIRECTORY$4 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "directory");
    private static final javax.xml.namespace.QName COMPOSITIONS$6 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "compositions");
    private static final javax.xml.namespace.QName DEMOGRAPHICS$8 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "demographics");
    private static final javax.xml.namespace.QName OTHERITEMS$10 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "other_items");
    
    
    /**
     * Gets the "ehr_access" element
     */
    public org.openehr.schemas.v1.XVERSIONEDOBJECT getEhrAccess()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.XVERSIONEDOBJECT target = null;
            target = (org.openehr.schemas.v1.XVERSIONEDOBJECT)get_store().find_element_user(EHRACCESS$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "ehr_access" element
     */
    public boolean isSetEhrAccess()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(EHRACCESS$0) != 0;
        }
    }
    
    /**
     * Sets the "ehr_access" element
     */
    public void setEhrAccess(org.openehr.schemas.v1.XVERSIONEDOBJECT ehrAccess)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.XVERSIONEDOBJECT target = null;
            target = (org.openehr.schemas.v1.XVERSIONEDOBJECT)get_store().find_element_user(EHRACCESS$0, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.XVERSIONEDOBJECT)get_store().add_element_user(EHRACCESS$0);
            }
            target.set(ehrAccess);
        }
    }
    
    /**
     * Appends and returns a new empty "ehr_access" element
     */
    public org.openehr.schemas.v1.XVERSIONEDOBJECT addNewEhrAccess()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.XVERSIONEDOBJECT target = null;
            target = (org.openehr.schemas.v1.XVERSIONEDOBJECT)get_store().add_element_user(EHRACCESS$0);
            return target;
        }
    }
    
    /**
     * Unsets the "ehr_access" element
     */
    public void unsetEhrAccess()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(EHRACCESS$0, 0);
        }
    }
    
    /**
     * Gets the "ehr_status" element
     */
    public org.openehr.schemas.v1.XVERSIONEDOBJECT getEhrStatus()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.XVERSIONEDOBJECT target = null;
            target = (org.openehr.schemas.v1.XVERSIONEDOBJECT)get_store().find_element_user(EHRSTATUS$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "ehr_status" element
     */
    public boolean isSetEhrStatus()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(EHRSTATUS$2) != 0;
        }
    }
    
    /**
     * Sets the "ehr_status" element
     */
    public void setEhrStatus(org.openehr.schemas.v1.XVERSIONEDOBJECT ehrStatus)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.XVERSIONEDOBJECT target = null;
            target = (org.openehr.schemas.v1.XVERSIONEDOBJECT)get_store().find_element_user(EHRSTATUS$2, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.XVERSIONEDOBJECT)get_store().add_element_user(EHRSTATUS$2);
            }
            target.set(ehrStatus);
        }
    }
    
    /**
     * Appends and returns a new empty "ehr_status" element
     */
    public org.openehr.schemas.v1.XVERSIONEDOBJECT addNewEhrStatus()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.XVERSIONEDOBJECT target = null;
            target = (org.openehr.schemas.v1.XVERSIONEDOBJECT)get_store().add_element_user(EHRSTATUS$2);
            return target;
        }
    }
    
    /**
     * Unsets the "ehr_status" element
     */
    public void unsetEhrStatus()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(EHRSTATUS$2, 0);
        }
    }
    
    /**
     * Gets the "directory" element
     */
    public org.openehr.schemas.v1.XVERSIONEDOBJECT getDirectory()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.XVERSIONEDOBJECT target = null;
            target = (org.openehr.schemas.v1.XVERSIONEDOBJECT)get_store().find_element_user(DIRECTORY$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "directory" element
     */
    public boolean isSetDirectory()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DIRECTORY$4) != 0;
        }
    }
    
    /**
     * Sets the "directory" element
     */
    public void setDirectory(org.openehr.schemas.v1.XVERSIONEDOBJECT directory)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.XVERSIONEDOBJECT target = null;
            target = (org.openehr.schemas.v1.XVERSIONEDOBJECT)get_store().find_element_user(DIRECTORY$4, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.XVERSIONEDOBJECT)get_store().add_element_user(DIRECTORY$4);
            }
            target.set(directory);
        }
    }
    
    /**
     * Appends and returns a new empty "directory" element
     */
    public org.openehr.schemas.v1.XVERSIONEDOBJECT addNewDirectory()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.XVERSIONEDOBJECT target = null;
            target = (org.openehr.schemas.v1.XVERSIONEDOBJECT)get_store().add_element_user(DIRECTORY$4);
            return target;
        }
    }
    
    /**
     * Unsets the "directory" element
     */
    public void unsetDirectory()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DIRECTORY$4, 0);
        }
    }
    
    /**
     * Gets array of all "compositions" elements
     */
    public org.openehr.schemas.v1.XVERSIONEDOBJECT[] getCompositionsArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(COMPOSITIONS$6, targetList);
            org.openehr.schemas.v1.XVERSIONEDOBJECT[] result = new org.openehr.schemas.v1.XVERSIONEDOBJECT[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "compositions" element
     */
    public org.openehr.schemas.v1.XVERSIONEDOBJECT getCompositionsArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.XVERSIONEDOBJECT target = null;
            target = (org.openehr.schemas.v1.XVERSIONEDOBJECT)get_store().find_element_user(COMPOSITIONS$6, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "compositions" element
     */
    public int sizeOfCompositionsArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(COMPOSITIONS$6);
        }
    }
    
    /**
     * Sets array of all "compositions" element
     */
    public void setCompositionsArray(org.openehr.schemas.v1.XVERSIONEDOBJECT[] compositionsArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(compositionsArray, COMPOSITIONS$6);
        }
    }
    
    /**
     * Sets ith "compositions" element
     */
    public void setCompositionsArray(int i, org.openehr.schemas.v1.XVERSIONEDOBJECT compositions)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.XVERSIONEDOBJECT target = null;
            target = (org.openehr.schemas.v1.XVERSIONEDOBJECT)get_store().find_element_user(COMPOSITIONS$6, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(compositions);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "compositions" element
     */
    public org.openehr.schemas.v1.XVERSIONEDOBJECT insertNewCompositions(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.XVERSIONEDOBJECT target = null;
            target = (org.openehr.schemas.v1.XVERSIONEDOBJECT)get_store().insert_element_user(COMPOSITIONS$6, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "compositions" element
     */
    public org.openehr.schemas.v1.XVERSIONEDOBJECT addNewCompositions()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.XVERSIONEDOBJECT target = null;
            target = (org.openehr.schemas.v1.XVERSIONEDOBJECT)get_store().add_element_user(COMPOSITIONS$6);
            return target;
        }
    }
    
    /**
     * Removes the ith "compositions" element
     */
    public void removeCompositions(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(COMPOSITIONS$6, i);
        }
    }
    
    /**
     * Gets array of all "demographics" elements
     */
    public org.openehr.schemas.v1.XVERSIONEDOBJECT[] getDemographicsArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(DEMOGRAPHICS$8, targetList);
            org.openehr.schemas.v1.XVERSIONEDOBJECT[] result = new org.openehr.schemas.v1.XVERSIONEDOBJECT[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "demographics" element
     */
    public org.openehr.schemas.v1.XVERSIONEDOBJECT getDemographicsArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.XVERSIONEDOBJECT target = null;
            target = (org.openehr.schemas.v1.XVERSIONEDOBJECT)get_store().find_element_user(DEMOGRAPHICS$8, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "demographics" element
     */
    public int sizeOfDemographicsArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DEMOGRAPHICS$8);
        }
    }
    
    /**
     * Sets array of all "demographics" element
     */
    public void setDemographicsArray(org.openehr.schemas.v1.XVERSIONEDOBJECT[] demographicsArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(demographicsArray, DEMOGRAPHICS$8);
        }
    }
    
    /**
     * Sets ith "demographics" element
     */
    public void setDemographicsArray(int i, org.openehr.schemas.v1.XVERSIONEDOBJECT demographics)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.XVERSIONEDOBJECT target = null;
            target = (org.openehr.schemas.v1.XVERSIONEDOBJECT)get_store().find_element_user(DEMOGRAPHICS$8, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(demographics);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "demographics" element
     */
    public org.openehr.schemas.v1.XVERSIONEDOBJECT insertNewDemographics(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.XVERSIONEDOBJECT target = null;
            target = (org.openehr.schemas.v1.XVERSIONEDOBJECT)get_store().insert_element_user(DEMOGRAPHICS$8, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "demographics" element
     */
    public org.openehr.schemas.v1.XVERSIONEDOBJECT addNewDemographics()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.XVERSIONEDOBJECT target = null;
            target = (org.openehr.schemas.v1.XVERSIONEDOBJECT)get_store().add_element_user(DEMOGRAPHICS$8);
            return target;
        }
    }
    
    /**
     * Removes the ith "demographics" element
     */
    public void removeDemographics(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DEMOGRAPHICS$8, i);
        }
    }
    
    /**
     * Gets array of all "other_items" elements
     */
    public org.openehr.schemas.v1.XVERSIONEDOBJECT[] getOtherItemsArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(OTHERITEMS$10, targetList);
            org.openehr.schemas.v1.XVERSIONEDOBJECT[] result = new org.openehr.schemas.v1.XVERSIONEDOBJECT[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "other_items" element
     */
    public org.openehr.schemas.v1.XVERSIONEDOBJECT getOtherItemsArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.XVERSIONEDOBJECT target = null;
            target = (org.openehr.schemas.v1.XVERSIONEDOBJECT)get_store().find_element_user(OTHERITEMS$10, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "other_items" element
     */
    public int sizeOfOtherItemsArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(OTHERITEMS$10);
        }
    }
    
    /**
     * Sets array of all "other_items" element
     */
    public void setOtherItemsArray(org.openehr.schemas.v1.XVERSIONEDOBJECT[] otherItemsArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(otherItemsArray, OTHERITEMS$10);
        }
    }
    
    /**
     * Sets ith "other_items" element
     */
    public void setOtherItemsArray(int i, org.openehr.schemas.v1.XVERSIONEDOBJECT otherItems)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.XVERSIONEDOBJECT target = null;
            target = (org.openehr.schemas.v1.XVERSIONEDOBJECT)get_store().find_element_user(OTHERITEMS$10, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(otherItems);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "other_items" element
     */
    public org.openehr.schemas.v1.XVERSIONEDOBJECT insertNewOtherItems(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.XVERSIONEDOBJECT target = null;
            target = (org.openehr.schemas.v1.XVERSIONEDOBJECT)get_store().insert_element_user(OTHERITEMS$10, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "other_items" element
     */
    public org.openehr.schemas.v1.XVERSIONEDOBJECT addNewOtherItems()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.XVERSIONEDOBJECT target = null;
            target = (org.openehr.schemas.v1.XVERSIONEDOBJECT)get_store().add_element_user(OTHERITEMS$10);
            return target;
        }
    }
    
    /**
     * Removes the ith "other_items" element
     */
    public void removeOtherItems(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(OTHERITEMS$10, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy