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

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

/*
 * XML Type:  ENTRY
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.ENTRY
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML ENTRY(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class ENTRYImpl extends org.openehr.schemas.v1.impl.CONTENTITEMImpl implements org.openehr.schemas.v1.ENTRY
{
    private static final long serialVersionUID = 1L;
    
    public ENTRYImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName LANGUAGE$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "language");
    private static final javax.xml.namespace.QName ENCODING$2 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "encoding");
    private static final javax.xml.namespace.QName SUBJECT$4 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "subject");
    private static final javax.xml.namespace.QName PROVIDER$6 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "provider");
    private static final javax.xml.namespace.QName OTHERPARTICIPATIONS$8 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "other_participations");
    private static final javax.xml.namespace.QName WORKFLOWID$10 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "work_flow_id");
    
    
    /**
     * Gets the "language" element
     */
    public org.openehr.schemas.v1.CODEPHRASE getLanguage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CODEPHRASE target = null;
            target = (org.openehr.schemas.v1.CODEPHRASE)get_store().find_element_user(LANGUAGE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "language" element
     */
    public void setLanguage(org.openehr.schemas.v1.CODEPHRASE language)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CODEPHRASE target = null;
            target = (org.openehr.schemas.v1.CODEPHRASE)get_store().find_element_user(LANGUAGE$0, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.CODEPHRASE)get_store().add_element_user(LANGUAGE$0);
            }
            target.set(language);
        }
    }
    
    /**
     * Appends and returns a new empty "language" element
     */
    public org.openehr.schemas.v1.CODEPHRASE addNewLanguage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CODEPHRASE target = null;
            target = (org.openehr.schemas.v1.CODEPHRASE)get_store().add_element_user(LANGUAGE$0);
            return target;
        }
    }
    
    /**
     * Gets the "encoding" element
     */
    public org.openehr.schemas.v1.CODEPHRASE getEncoding()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CODEPHRASE target = null;
            target = (org.openehr.schemas.v1.CODEPHRASE)get_store().find_element_user(ENCODING$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "encoding" element
     */
    public void setEncoding(org.openehr.schemas.v1.CODEPHRASE encoding)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CODEPHRASE target = null;
            target = (org.openehr.schemas.v1.CODEPHRASE)get_store().find_element_user(ENCODING$2, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.CODEPHRASE)get_store().add_element_user(ENCODING$2);
            }
            target.set(encoding);
        }
    }
    
    /**
     * Appends and returns a new empty "encoding" element
     */
    public org.openehr.schemas.v1.CODEPHRASE addNewEncoding()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CODEPHRASE target = null;
            target = (org.openehr.schemas.v1.CODEPHRASE)get_store().add_element_user(ENCODING$2);
            return target;
        }
    }
    
    /**
     * Gets the "subject" element
     */
    public org.openehr.schemas.v1.PARTYPROXY getSubject()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.PARTYPROXY target = null;
            target = (org.openehr.schemas.v1.PARTYPROXY)get_store().find_element_user(SUBJECT$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "subject" element
     */
    public void setSubject(org.openehr.schemas.v1.PARTYPROXY subject)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.PARTYPROXY target = null;
            target = (org.openehr.schemas.v1.PARTYPROXY)get_store().find_element_user(SUBJECT$4, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.PARTYPROXY)get_store().add_element_user(SUBJECT$4);
            }
            target.set(subject);
        }
    }
    
    /**
     * Appends and returns a new empty "subject" element
     */
    public org.openehr.schemas.v1.PARTYPROXY addNewSubject()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.PARTYPROXY target = null;
            target = (org.openehr.schemas.v1.PARTYPROXY)get_store().add_element_user(SUBJECT$4);
            return target;
        }
    }
    
    /**
     * Gets the "provider" element
     */
    public org.openehr.schemas.v1.PARTYPROXY getProvider()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.PARTYPROXY target = null;
            target = (org.openehr.schemas.v1.PARTYPROXY)get_store().find_element_user(PROVIDER$6, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "provider" element
     */
    public boolean isSetProvider()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PROVIDER$6) != 0;
        }
    }
    
    /**
     * Sets the "provider" element
     */
    public void setProvider(org.openehr.schemas.v1.PARTYPROXY provider)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.PARTYPROXY target = null;
            target = (org.openehr.schemas.v1.PARTYPROXY)get_store().find_element_user(PROVIDER$6, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.PARTYPROXY)get_store().add_element_user(PROVIDER$6);
            }
            target.set(provider);
        }
    }
    
    /**
     * Appends and returns a new empty "provider" element
     */
    public org.openehr.schemas.v1.PARTYPROXY addNewProvider()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.PARTYPROXY target = null;
            target = (org.openehr.schemas.v1.PARTYPROXY)get_store().add_element_user(PROVIDER$6);
            return target;
        }
    }
    
    /**
     * Unsets the "provider" element
     */
    public void unsetProvider()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PROVIDER$6, 0);
        }
    }
    
    /**
     * Gets array of all "other_participations" elements
     */
    public org.openehr.schemas.v1.PARTICIPATION[] getOtherParticipationsArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(OTHERPARTICIPATIONS$8, targetList);
            org.openehr.schemas.v1.PARTICIPATION[] result = new org.openehr.schemas.v1.PARTICIPATION[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "other_participations" element
     */
    public org.openehr.schemas.v1.PARTICIPATION getOtherParticipationsArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.PARTICIPATION target = null;
            target = (org.openehr.schemas.v1.PARTICIPATION)get_store().find_element_user(OTHERPARTICIPATIONS$8, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "other_participations" element
     */
    public int sizeOfOtherParticipationsArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(OTHERPARTICIPATIONS$8);
        }
    }
    
    /**
     * Sets array of all "other_participations" element
     */
    public void setOtherParticipationsArray(org.openehr.schemas.v1.PARTICIPATION[] otherParticipationsArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(otherParticipationsArray, OTHERPARTICIPATIONS$8);
        }
    }
    
    /**
     * Sets ith "other_participations" element
     */
    public void setOtherParticipationsArray(int i, org.openehr.schemas.v1.PARTICIPATION otherParticipations)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.PARTICIPATION target = null;
            target = (org.openehr.schemas.v1.PARTICIPATION)get_store().find_element_user(OTHERPARTICIPATIONS$8, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(otherParticipations);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "other_participations" element
     */
    public org.openehr.schemas.v1.PARTICIPATION insertNewOtherParticipations(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.PARTICIPATION target = null;
            target = (org.openehr.schemas.v1.PARTICIPATION)get_store().insert_element_user(OTHERPARTICIPATIONS$8, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "other_participations" element
     */
    public org.openehr.schemas.v1.PARTICIPATION addNewOtherParticipations()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.PARTICIPATION target = null;
            target = (org.openehr.schemas.v1.PARTICIPATION)get_store().add_element_user(OTHERPARTICIPATIONS$8);
            return target;
        }
    }
    
    /**
     * Removes the ith "other_participations" element
     */
    public void removeOtherParticipations(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(OTHERPARTICIPATIONS$8, i);
        }
    }
    
    /**
     * Gets the "work_flow_id" element
     */
    public org.openehr.schemas.v1.OBJECTREF getWorkFlowId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.OBJECTREF target = null;
            target = (org.openehr.schemas.v1.OBJECTREF)get_store().find_element_user(WORKFLOWID$10, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "work_flow_id" element
     */
    public boolean isSetWorkFlowId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(WORKFLOWID$10) != 0;
        }
    }
    
    /**
     * Sets the "work_flow_id" element
     */
    public void setWorkFlowId(org.openehr.schemas.v1.OBJECTREF workFlowId)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.OBJECTREF target = null;
            target = (org.openehr.schemas.v1.OBJECTREF)get_store().find_element_user(WORKFLOWID$10, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.OBJECTREF)get_store().add_element_user(WORKFLOWID$10);
            }
            target.set(workFlowId);
        }
    }
    
    /**
     * Appends and returns a new empty "work_flow_id" element
     */
    public org.openehr.schemas.v1.OBJECTREF addNewWorkFlowId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.OBJECTREF target = null;
            target = (org.openehr.schemas.v1.OBJECTREF)get_store().add_element_user(WORKFLOWID$10);
            return target;
        }
    }
    
    /**
     * Unsets the "work_flow_id" element
     */
    public void unsetWorkFlowId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(WORKFLOWID$10, 0);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy