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

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

The newest version!
/*
 * XML Type:  quantityConstraint
 * Namespace: openEHR/v1/Template
 * Java type: openEHR.v1.template.QuantityConstraint
 *
 * Automatically generated - do not modify.
 */
package openEHR.v1.template.impl;
/**
 * An XML quantityConstraint(@openEHR/v1/Template).
 *
 * This is a complex type.
 */
public class QuantityConstraintImpl extends openEHR.v1.template.impl.ValueConstraintImpl implements openEHR.v1.template.QuantityConstraint
{
    private static final long serialVersionUID = 1L;
    
    public QuantityConstraintImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName INCLUDEDUNITS$0 = 
        new javax.xml.namespace.QName("openEHR/v1/Template", "includedUnits");
    private static final javax.xml.namespace.QName EXCLUDEDUNITS$2 = 
        new javax.xml.namespace.QName("openEHR/v1/Template", "excludedUnits");
    private static final javax.xml.namespace.QName UNITMAGNITUDE$4 = 
        new javax.xml.namespace.QName("openEHR/v1/Template", "unitMagnitude");
    
    
    /**
     * Gets array of all "includedUnits" elements
     */
    public java.lang.String[] getIncludedUnitsArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(INCLUDEDUNITS$0, targetList);
            java.lang.String[] result = new java.lang.String[targetList.size()];
            for (int i = 0, len = targetList.size() ; i < len ; i++)
                result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();
            return result;
        }
    }
    
    /**
     * Gets ith "includedUnits" element
     */
    public java.lang.String getIncludedUnitsArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INCLUDEDUNITS$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) array of all "includedUnits" elements
     */
    public org.apache.xmlbeans.XmlString[] xgetIncludedUnitsArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(INCLUDEDUNITS$0, targetList);
            org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets (as xml) ith "includedUnits" element
     */
    public org.apache.xmlbeans.XmlString xgetIncludedUnitsArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(INCLUDEDUNITS$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return (org.apache.xmlbeans.XmlString)target;
        }
    }
    
    /**
     * Returns number of "includedUnits" element
     */
    public int sizeOfIncludedUnitsArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(INCLUDEDUNITS$0);
        }
    }
    
    /**
     * Sets array of all "includedUnits" element
     */
    public void setIncludedUnitsArray(java.lang.String[] includedUnitsArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(includedUnitsArray, INCLUDEDUNITS$0);
        }
    }
    
    /**
     * Sets ith "includedUnits" element
     */
    public void setIncludedUnitsArray(int i, java.lang.String includedUnits)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INCLUDEDUNITS$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.setStringValue(includedUnits);
        }
    }
    
    /**
     * Sets (as xml) array of all "includedUnits" element
     */
    public void xsetIncludedUnitsArray(org.apache.xmlbeans.XmlString[]includedUnitsArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(includedUnitsArray, INCLUDEDUNITS$0);
        }
    }
    
    /**
     * Sets (as xml) ith "includedUnits" element
     */
    public void xsetIncludedUnitsArray(int i, org.apache.xmlbeans.XmlString includedUnits)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(INCLUDEDUNITS$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(includedUnits);
        }
    }
    
    /**
     * Inserts the value as the ith "includedUnits" element
     */
    public void insertIncludedUnits(int i, java.lang.String includedUnits)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = 
                (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(INCLUDEDUNITS$0, i);
            target.setStringValue(includedUnits);
        }
    }
    
    /**
     * Appends the value as the last "includedUnits" element
     */
    public void addIncludedUnits(java.lang.String includedUnits)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(INCLUDEDUNITS$0);
            target.setStringValue(includedUnits);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "includedUnits" element
     */
    public org.apache.xmlbeans.XmlString insertNewIncludedUnits(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(INCLUDEDUNITS$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "includedUnits" element
     */
    public org.apache.xmlbeans.XmlString addNewIncludedUnits()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(INCLUDEDUNITS$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "includedUnits" element
     */
    public void removeIncludedUnits(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(INCLUDEDUNITS$0, i);
        }
    }
    
    /**
     * Gets array of all "excludedUnits" elements
     */
    public java.lang.String[] getExcludedUnitsArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(EXCLUDEDUNITS$2, targetList);
            java.lang.String[] result = new java.lang.String[targetList.size()];
            for (int i = 0, len = targetList.size() ; i < len ; i++)
                result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();
            return result;
        }
    }
    
    /**
     * Gets ith "excludedUnits" element
     */
    public java.lang.String getExcludedUnitsArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(EXCLUDEDUNITS$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) array of all "excludedUnits" elements
     */
    public org.apache.xmlbeans.XmlString[] xgetExcludedUnitsArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(EXCLUDEDUNITS$2, targetList);
            org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets (as xml) ith "excludedUnits" element
     */
    public org.apache.xmlbeans.XmlString xgetExcludedUnitsArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(EXCLUDEDUNITS$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return (org.apache.xmlbeans.XmlString)target;
        }
    }
    
    /**
     * Returns number of "excludedUnits" element
     */
    public int sizeOfExcludedUnitsArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(EXCLUDEDUNITS$2);
        }
    }
    
    /**
     * Sets array of all "excludedUnits" element
     */
    public void setExcludedUnitsArray(java.lang.String[] excludedUnitsArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(excludedUnitsArray, EXCLUDEDUNITS$2);
        }
    }
    
    /**
     * Sets ith "excludedUnits" element
     */
    public void setExcludedUnitsArray(int i, java.lang.String excludedUnits)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(EXCLUDEDUNITS$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.setStringValue(excludedUnits);
        }
    }
    
    /**
     * Sets (as xml) array of all "excludedUnits" element
     */
    public void xsetExcludedUnitsArray(org.apache.xmlbeans.XmlString[]excludedUnitsArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(excludedUnitsArray, EXCLUDEDUNITS$2);
        }
    }
    
    /**
     * Sets (as xml) ith "excludedUnits" element
     */
    public void xsetExcludedUnitsArray(int i, org.apache.xmlbeans.XmlString excludedUnits)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(EXCLUDEDUNITS$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(excludedUnits);
        }
    }
    
    /**
     * Inserts the value as the ith "excludedUnits" element
     */
    public void insertExcludedUnits(int i, java.lang.String excludedUnits)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = 
                (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(EXCLUDEDUNITS$2, i);
            target.setStringValue(excludedUnits);
        }
    }
    
    /**
     * Appends the value as the last "excludedUnits" element
     */
    public void addExcludedUnits(java.lang.String excludedUnits)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(EXCLUDEDUNITS$2);
            target.setStringValue(excludedUnits);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "excludedUnits" element
     */
    public org.apache.xmlbeans.XmlString insertNewExcludedUnits(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(EXCLUDEDUNITS$2, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "excludedUnits" element
     */
    public org.apache.xmlbeans.XmlString addNewExcludedUnits()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(EXCLUDEDUNITS$2);
            return target;
        }
    }
    
    /**
     * Removes the ith "excludedUnits" element
     */
    public void removeExcludedUnits(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(EXCLUDEDUNITS$2, i);
        }
    }
    
    /**
     * Gets array of all "unitMagnitude" elements
     */
    public openEHR.v1.template.QuantityUnitConstraint[] getUnitMagnitudeArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(UNITMAGNITUDE$4, targetList);
            openEHR.v1.template.QuantityUnitConstraint[] result = new openEHR.v1.template.QuantityUnitConstraint[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "unitMagnitude" element
     */
    public openEHR.v1.template.QuantityUnitConstraint getUnitMagnitudeArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.QuantityUnitConstraint target = null;
            target = (openEHR.v1.template.QuantityUnitConstraint)get_store().find_element_user(UNITMAGNITUDE$4, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "unitMagnitude" element
     */
    public int sizeOfUnitMagnitudeArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(UNITMAGNITUDE$4);
        }
    }
    
    /**
     * Sets array of all "unitMagnitude" element
     */
    public void setUnitMagnitudeArray(openEHR.v1.template.QuantityUnitConstraint[] unitMagnitudeArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(unitMagnitudeArray, UNITMAGNITUDE$4);
        }
    }
    
    /**
     * Sets ith "unitMagnitude" element
     */
    public void setUnitMagnitudeArray(int i, openEHR.v1.template.QuantityUnitConstraint unitMagnitude)
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.QuantityUnitConstraint target = null;
            target = (openEHR.v1.template.QuantityUnitConstraint)get_store().find_element_user(UNITMAGNITUDE$4, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(unitMagnitude);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "unitMagnitude" element
     */
    public openEHR.v1.template.QuantityUnitConstraint insertNewUnitMagnitude(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.QuantityUnitConstraint target = null;
            target = (openEHR.v1.template.QuantityUnitConstraint)get_store().insert_element_user(UNITMAGNITUDE$4, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "unitMagnitude" element
     */
    public openEHR.v1.template.QuantityUnitConstraint addNewUnitMagnitude()
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.QuantityUnitConstraint target = null;
            target = (openEHR.v1.template.QuantityUnitConstraint)get_store().add_element_user(UNITMAGNITUDE$4);
            return target;
        }
    }
    
    /**
     * Removes the ith "unitMagnitude" element
     */
    public void removeUnitMagnitude(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(UNITMAGNITUDE$4, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy