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

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

The newest version!
/*
 * XML Type:  EXTRACT_MANIFEST
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.EXTRACTMANIFEST
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML EXTRACT_MANIFEST(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class EXTRACTMANIFESTImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openehr.schemas.v1.EXTRACTMANIFEST
{
    private static final long serialVersionUID = 1L;
    
    public EXTRACTMANIFESTImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ENTITIES$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "entities");
    
    
    /**
     * Gets array of all "entities" elements
     */
    public org.openehr.schemas.v1.EXTRACTENTITYMANIFEST[] getEntitiesArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(ENTITIES$0, targetList);
            org.openehr.schemas.v1.EXTRACTENTITYMANIFEST[] result = new org.openehr.schemas.v1.EXTRACTENTITYMANIFEST[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "entities" element
     */
    public org.openehr.schemas.v1.EXTRACTENTITYMANIFEST getEntitiesArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.EXTRACTENTITYMANIFEST target = null;
            target = (org.openehr.schemas.v1.EXTRACTENTITYMANIFEST)get_store().find_element_user(ENTITIES$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "entities" element
     */
    public int sizeOfEntitiesArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ENTITIES$0);
        }
    }
    
    /**
     * Sets array of all "entities" element
     */
    public void setEntitiesArray(org.openehr.schemas.v1.EXTRACTENTITYMANIFEST[] entitiesArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(entitiesArray, ENTITIES$0);
        }
    }
    
    /**
     * Sets ith "entities" element
     */
    public void setEntitiesArray(int i, org.openehr.schemas.v1.EXTRACTENTITYMANIFEST entities)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.EXTRACTENTITYMANIFEST target = null;
            target = (org.openehr.schemas.v1.EXTRACTENTITYMANIFEST)get_store().find_element_user(ENTITIES$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(entities);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "entities" element
     */
    public org.openehr.schemas.v1.EXTRACTENTITYMANIFEST insertNewEntities(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.EXTRACTENTITYMANIFEST target = null;
            target = (org.openehr.schemas.v1.EXTRACTENTITYMANIFEST)get_store().insert_element_user(ENTITIES$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "entities" element
     */
    public org.openehr.schemas.v1.EXTRACTENTITYMANIFEST addNewEntities()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.EXTRACTENTITYMANIFEST target = null;
            target = (org.openehr.schemas.v1.EXTRACTENTITYMANIFEST)get_store().add_element_user(ENTITIES$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "entities" element
     */
    public void removeEntities(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ENTITIES$0, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy