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

openEHR.v1.template.impl.PARTYImpl Maven / Gradle / Ivy

The newest version!
/*
 * XML Type:  PARTY
 * Namespace: openEHR/v1/Template
 * Java type: openEHR.v1.template.PARTY
 *
 * Automatically generated - do not modify.
 */
package openEHR.v1.template.impl;
/**
 * An XML PARTY(@openEHR/v1/Template).
 *
 * This is a complex type.
 */
public class PARTYImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements openEHR.v1.template.PARTY
{
    private static final long serialVersionUID = 1L;
    
    public PARTYImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName EXTERNALREFREQUIRED$0 = 
        new javax.xml.namespace.QName("openEHR/v1/Template", "externalRefRequired");
    private static final javax.xml.namespace.QName PARTYNAME$2 = 
        new javax.xml.namespace.QName("openEHR/v1/Template", "partyName");
    private static final javax.xml.namespace.QName PARTYIDENTIFIER$4 = 
        new javax.xml.namespace.QName("openEHR/v1/Template", "partyIdentifier");
    private static final javax.xml.namespace.QName PARTYRELATIONSHIP$6 = 
        new javax.xml.namespace.QName("openEHR/v1/Template", "partyRelationship");
    
    
    /**
     * Gets the "externalRefRequired" element
     */
    public boolean getExternalRefRequired()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(EXTERNALREFREQUIRED$0, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "externalRefRequired" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetExternalRefRequired()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(EXTERNALREFREQUIRED$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "externalRefRequired" element
     */
    public void setExternalRefRequired(boolean externalRefRequired)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(EXTERNALREFREQUIRED$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(EXTERNALREFREQUIRED$0);
            }
            target.setBooleanValue(externalRefRequired);
        }
    }
    
    /**
     * Sets (as xml) the "externalRefRequired" element
     */
    public void xsetExternalRefRequired(org.apache.xmlbeans.XmlBoolean externalRefRequired)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(EXTERNALREFREQUIRED$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(EXTERNALREFREQUIRED$0);
            }
            target.set(externalRefRequired);
        }
    }
    
    /**
     * Gets the "partyName" element
     */
    public java.lang.String getPartyName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PARTYNAME$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "partyName" element
     */
    public org.apache.xmlbeans.XmlString xgetPartyName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PARTYNAME$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "partyName" element
     */
    public boolean isSetPartyName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PARTYNAME$2) != 0;
        }
    }
    
    /**
     * Sets the "partyName" element
     */
    public void setPartyName(java.lang.String partyName)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PARTYNAME$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PARTYNAME$2);
            }
            target.setStringValue(partyName);
        }
    }
    
    /**
     * Sets (as xml) the "partyName" element
     */
    public void xsetPartyName(org.apache.xmlbeans.XmlString partyName)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PARTYNAME$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PARTYNAME$2);
            }
            target.set(partyName);
        }
    }
    
    /**
     * Unsets the "partyName" element
     */
    public void unsetPartyName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PARTYNAME$2, 0);
        }
    }
    
    /**
     * Gets array of all "partyIdentifier" elements
     */
    public openEHR.v1.template.DvIdentifier[] getPartyIdentifierArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(PARTYIDENTIFIER$4, targetList);
            openEHR.v1.template.DvIdentifier[] result = new openEHR.v1.template.DvIdentifier[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "partyIdentifier" element
     */
    public openEHR.v1.template.DvIdentifier getPartyIdentifierArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.DvIdentifier target = null;
            target = (openEHR.v1.template.DvIdentifier)get_store().find_element_user(PARTYIDENTIFIER$4, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "partyIdentifier" element
     */
    public int sizeOfPartyIdentifierArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PARTYIDENTIFIER$4);
        }
    }
    
    /**
     * Sets array of all "partyIdentifier" element
     */
    public void setPartyIdentifierArray(openEHR.v1.template.DvIdentifier[] partyIdentifierArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(partyIdentifierArray, PARTYIDENTIFIER$4);
        }
    }
    
    /**
     * Sets ith "partyIdentifier" element
     */
    public void setPartyIdentifierArray(int i, openEHR.v1.template.DvIdentifier partyIdentifier)
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.DvIdentifier target = null;
            target = (openEHR.v1.template.DvIdentifier)get_store().find_element_user(PARTYIDENTIFIER$4, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(partyIdentifier);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "partyIdentifier" element
     */
    public openEHR.v1.template.DvIdentifier insertNewPartyIdentifier(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.DvIdentifier target = null;
            target = (openEHR.v1.template.DvIdentifier)get_store().insert_element_user(PARTYIDENTIFIER$4, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "partyIdentifier" element
     */
    public openEHR.v1.template.DvIdentifier addNewPartyIdentifier()
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.DvIdentifier target = null;
            target = (openEHR.v1.template.DvIdentifier)get_store().add_element_user(PARTYIDENTIFIER$4);
            return target;
        }
    }
    
    /**
     * Removes the ith "partyIdentifier" element
     */
    public void removePartyIdentifier(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PARTYIDENTIFIER$4, i);
        }
    }
    
    /**
     * Gets the "partyRelationship" element
     */
    public openEHR.v1.template.TextConstraint getPartyRelationship()
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.TextConstraint target = null;
            target = (openEHR.v1.template.TextConstraint)get_store().find_element_user(PARTYRELATIONSHIP$6, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "partyRelationship" element
     */
    public boolean isSetPartyRelationship()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PARTYRELATIONSHIP$6) != 0;
        }
    }
    
    /**
     * Sets the "partyRelationship" element
     */
    public void setPartyRelationship(openEHR.v1.template.TextConstraint partyRelationship)
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.TextConstraint target = null;
            target = (openEHR.v1.template.TextConstraint)get_store().find_element_user(PARTYRELATIONSHIP$6, 0);
            if (target == null)
            {
                target = (openEHR.v1.template.TextConstraint)get_store().add_element_user(PARTYRELATIONSHIP$6);
            }
            target.set(partyRelationship);
        }
    }
    
    /**
     * Appends and returns a new empty "partyRelationship" element
     */
    public openEHR.v1.template.TextConstraint addNewPartyRelationship()
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.TextConstraint target = null;
            target = (openEHR.v1.template.TextConstraint)get_store().add_element_user(PARTYRELATIONSHIP$6);
            return target;
        }
    }
    
    /**
     * Unsets the "partyRelationship" element
     */
    public void unsetPartyRelationship()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PARTYRELATIONSHIP$6, 0);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy