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

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

The newest version!
/*
 * XML Type:  C_COMPLEX_OBJECT
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.CCOMPLEXOBJECT
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML C_COMPLEX_OBJECT(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class CCOMPLEXOBJECTImpl extends org.openehr.schemas.v1.impl.CDEFINEDOBJECTImpl implements org.openehr.schemas.v1.CCOMPLEXOBJECT
{
    private static final long serialVersionUID = 1L;
    
    public CCOMPLEXOBJECTImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ATTRIBUTES$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "attributes");
    
    
    /**
     * Gets array of all "attributes" elements
     */
    public org.openehr.schemas.v1.CATTRIBUTE[] getAttributesArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(ATTRIBUTES$0, targetList);
            org.openehr.schemas.v1.CATTRIBUTE[] result = new org.openehr.schemas.v1.CATTRIBUTE[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "attributes" element
     */
    public org.openehr.schemas.v1.CATTRIBUTE getAttributesArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CATTRIBUTE target = null;
            target = (org.openehr.schemas.v1.CATTRIBUTE)get_store().find_element_user(ATTRIBUTES$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "attributes" element
     */
    public int sizeOfAttributesArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ATTRIBUTES$0);
        }
    }
    
    /**
     * Sets array of all "attributes" element
     */
    public void setAttributesArray(org.openehr.schemas.v1.CATTRIBUTE[] attributesArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(attributesArray, ATTRIBUTES$0);
        }
    }
    
    /**
     * Sets ith "attributes" element
     */
    public void setAttributesArray(int i, org.openehr.schemas.v1.CATTRIBUTE attributes)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CATTRIBUTE target = null;
            target = (org.openehr.schemas.v1.CATTRIBUTE)get_store().find_element_user(ATTRIBUTES$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(attributes);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "attributes" element
     */
    public org.openehr.schemas.v1.CATTRIBUTE insertNewAttributes(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CATTRIBUTE target = null;
            target = (org.openehr.schemas.v1.CATTRIBUTE)get_store().insert_element_user(ATTRIBUTES$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "attributes" element
     */
    public org.openehr.schemas.v1.CATTRIBUTE addNewAttributes()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CATTRIBUTE target = null;
            target = (org.openehr.schemas.v1.CATTRIBUTE)get_store().add_element_user(ATTRIBUTES$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "attributes" element
     */
    public void removeAttributes(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ATTRIBUTES$0, i);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy