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

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

The newest version!
/*
 * XML Type:  REVISION_HISTORY_ITEM
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.REVISIONHISTORYITEM
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML REVISION_HISTORY_ITEM(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class REVISIONHISTORYITEMImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openehr.schemas.v1.REVISIONHISTORYITEM
{
    private static final long serialVersionUID = 1L;
    
    public REVISIONHISTORYITEMImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName VERSIONID$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "version_id");
    private static final javax.xml.namespace.QName AUDITS$2 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "audits");
    
    
    /**
     * Gets the "version_id" element
     */
    public org.openehr.schemas.v1.OBJECTVERSIONID getVersionId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.OBJECTVERSIONID target = null;
            target = (org.openehr.schemas.v1.OBJECTVERSIONID)get_store().find_element_user(VERSIONID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "version_id" element
     */
    public void setVersionId(org.openehr.schemas.v1.OBJECTVERSIONID versionId)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.OBJECTVERSIONID target = null;
            target = (org.openehr.schemas.v1.OBJECTVERSIONID)get_store().find_element_user(VERSIONID$0, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.OBJECTVERSIONID)get_store().add_element_user(VERSIONID$0);
            }
            target.set(versionId);
        }
    }
    
    /**
     * Appends and returns a new empty "version_id" element
     */
    public org.openehr.schemas.v1.OBJECTVERSIONID addNewVersionId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.OBJECTVERSIONID target = null;
            target = (org.openehr.schemas.v1.OBJECTVERSIONID)get_store().add_element_user(VERSIONID$0);
            return target;
        }
    }
    
    /**
     * Gets array of all "audits" elements
     */
    public org.openehr.schemas.v1.AUDITDETAILS[] getAuditsArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(AUDITS$2, targetList);
            org.openehr.schemas.v1.AUDITDETAILS[] result = new org.openehr.schemas.v1.AUDITDETAILS[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "audits" element
     */
    public org.openehr.schemas.v1.AUDITDETAILS getAuditsArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.AUDITDETAILS target = null;
            target = (org.openehr.schemas.v1.AUDITDETAILS)get_store().find_element_user(AUDITS$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "audits" element
     */
    public int sizeOfAuditsArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(AUDITS$2);
        }
    }
    
    /**
     * Sets array of all "audits" element
     */
    public void setAuditsArray(org.openehr.schemas.v1.AUDITDETAILS[] auditsArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(auditsArray, AUDITS$2);
        }
    }
    
    /**
     * Sets ith "audits" element
     */
    public void setAuditsArray(int i, org.openehr.schemas.v1.AUDITDETAILS audits)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.AUDITDETAILS target = null;
            target = (org.openehr.schemas.v1.AUDITDETAILS)get_store().find_element_user(AUDITS$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(audits);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "audits" element
     */
    public org.openehr.schemas.v1.AUDITDETAILS insertNewAudits(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.AUDITDETAILS target = null;
            target = (org.openehr.schemas.v1.AUDITDETAILS)get_store().insert_element_user(AUDITS$2, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "audits" element
     */
    public org.openehr.schemas.v1.AUDITDETAILS addNewAudits()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.AUDITDETAILS target = null;
            target = (org.openehr.schemas.v1.AUDITDETAILS)get_store().add_element_user(AUDITS$2);
            return target;
        }
    }
    
    /**
     * Removes the ith "audits" element
     */
    public void removeAudits(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(AUDITS$2, i);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy