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

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

/*
 * XML Type:  PARTY_IDENTIFIED
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.PARTYIDENTIFIED
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML PARTY_IDENTIFIED(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class PARTYIDENTIFIEDImpl extends org.openehr.schemas.v1.impl.PARTYPROXYImpl implements org.openehr.schemas.v1.PARTYIDENTIFIED
{
    private static final long serialVersionUID = 1L;
    
    public PARTYIDENTIFIEDImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName NAME$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "name");
    private static final javax.xml.namespace.QName IDENTIFIERS$2 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "identifiers");
    
    
    /**
     * Gets the "name" element
     */
    public java.lang.String getName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "name" element
     */
    public org.apache.xmlbeans.XmlString xgetName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0);
            return target;
        }
    }
    
    /**
     * True if has "name" element
     */
    public boolean isSetName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(NAME$0) != 0;
        }
    }
    
    /**
     * Sets the "name" element
     */
    public void setName(java.lang.String name)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAME$0);
            }
            target.setStringValue(name);
        }
    }
    
    /**
     * Sets (as xml) the "name" element
     */
    public void xsetName(org.apache.xmlbeans.XmlString name)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NAME$0);
            }
            target.set(name);
        }
    }
    
    /**
     * Unsets the "name" element
     */
    public void unsetName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(NAME$0, 0);
        }
    }
    
    /**
     * Gets array of all "identifiers" elements
     */
    public org.openehr.schemas.v1.DVIDENTIFIER[] getIdentifiersArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(IDENTIFIERS$2, targetList);
            org.openehr.schemas.v1.DVIDENTIFIER[] result = new org.openehr.schemas.v1.DVIDENTIFIER[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "identifiers" element
     */
    public org.openehr.schemas.v1.DVIDENTIFIER getIdentifiersArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVIDENTIFIER target = null;
            target = (org.openehr.schemas.v1.DVIDENTIFIER)get_store().find_element_user(IDENTIFIERS$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "identifiers" element
     */
    public int sizeOfIdentifiersArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(IDENTIFIERS$2);
        }
    }
    
    /**
     * Sets array of all "identifiers" element
     */
    public void setIdentifiersArray(org.openehr.schemas.v1.DVIDENTIFIER[] identifiersArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(identifiersArray, IDENTIFIERS$2);
        }
    }
    
    /**
     * Sets ith "identifiers" element
     */
    public void setIdentifiersArray(int i, org.openehr.schemas.v1.DVIDENTIFIER identifiers)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVIDENTIFIER target = null;
            target = (org.openehr.schemas.v1.DVIDENTIFIER)get_store().find_element_user(IDENTIFIERS$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(identifiers);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "identifiers" element
     */
    public org.openehr.schemas.v1.DVIDENTIFIER insertNewIdentifiers(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVIDENTIFIER target = null;
            target = (org.openehr.schemas.v1.DVIDENTIFIER)get_store().insert_element_user(IDENTIFIERS$2, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "identifiers" element
     */
    public org.openehr.schemas.v1.DVIDENTIFIER addNewIdentifiers()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVIDENTIFIER target = null;
            target = (org.openehr.schemas.v1.DVIDENTIFIER)get_store().add_element_user(IDENTIFIERS$2);
            return target;
        }
    }
    
    /**
     * Removes the ith "identifiers" element
     */
    public void removeIdentifiers(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(IDENTIFIERS$2, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy