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

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

/*
 * XML Type:  C_DV_QUANTITY
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.CDVQUANTITY
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML C_DV_QUANTITY(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class CDVQUANTITYImpl extends org.openehr.schemas.v1.impl.CDOMAINTYPEImpl implements org.openehr.schemas.v1.CDVQUANTITY
{
    private static final long serialVersionUID = 1L;
    
    public CDVQUANTITYImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ASSUMEDVALUE$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "assumed_value");
    private static final javax.xml.namespace.QName PROPERTY$2 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "property");
    private static final javax.xml.namespace.QName LIST$4 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "list");
    
    
    /**
     * Gets the "assumed_value" element
     */
    public org.openehr.schemas.v1.DVQUANTITY getAssumedValue()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVQUANTITY target = null;
            target = (org.openehr.schemas.v1.DVQUANTITY)get_store().find_element_user(ASSUMEDVALUE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "assumed_value" element
     */
    public boolean isSetAssumedValue()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ASSUMEDVALUE$0) != 0;
        }
    }
    
    /**
     * Sets the "assumed_value" element
     */
    public void setAssumedValue(org.openehr.schemas.v1.DVQUANTITY assumedValue)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVQUANTITY target = null;
            target = (org.openehr.schemas.v1.DVQUANTITY)get_store().find_element_user(ASSUMEDVALUE$0, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.DVQUANTITY)get_store().add_element_user(ASSUMEDVALUE$0);
            }
            target.set(assumedValue);
        }
    }
    
    /**
     * Appends and returns a new empty "assumed_value" element
     */
    public org.openehr.schemas.v1.DVQUANTITY addNewAssumedValue()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.DVQUANTITY target = null;
            target = (org.openehr.schemas.v1.DVQUANTITY)get_store().add_element_user(ASSUMEDVALUE$0);
            return target;
        }
    }
    
    /**
     * Unsets the "assumed_value" element
     */
    public void unsetAssumedValue()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ASSUMEDVALUE$0, 0);
        }
    }
    
    /**
     * Gets the "property" element
     */
    public org.openehr.schemas.v1.CODEPHRASE getProperty()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CODEPHRASE target = null;
            target = (org.openehr.schemas.v1.CODEPHRASE)get_store().find_element_user(PROPERTY$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "property" element
     */
    public boolean isSetProperty()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PROPERTY$2) != 0;
        }
    }
    
    /**
     * Sets the "property" element
     */
    public void setProperty(org.openehr.schemas.v1.CODEPHRASE property)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CODEPHRASE target = null;
            target = (org.openehr.schemas.v1.CODEPHRASE)get_store().find_element_user(PROPERTY$2, 0);
            if (target == null)
            {
                target = (org.openehr.schemas.v1.CODEPHRASE)get_store().add_element_user(PROPERTY$2);
            }
            target.set(property);
        }
    }
    
    /**
     * Appends and returns a new empty "property" element
     */
    public org.openehr.schemas.v1.CODEPHRASE addNewProperty()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CODEPHRASE target = null;
            target = (org.openehr.schemas.v1.CODEPHRASE)get_store().add_element_user(PROPERTY$2);
            return target;
        }
    }
    
    /**
     * Unsets the "property" element
     */
    public void unsetProperty()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PROPERTY$2, 0);
        }
    }
    
    /**
     * Gets array of all "list" elements
     */
    public org.openehr.schemas.v1.CQUANTITYITEM[] getListArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(LIST$4, targetList);
            org.openehr.schemas.v1.CQUANTITYITEM[] result = new org.openehr.schemas.v1.CQUANTITYITEM[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "list" element
     */
    public org.openehr.schemas.v1.CQUANTITYITEM getListArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CQUANTITYITEM target = null;
            target = (org.openehr.schemas.v1.CQUANTITYITEM)get_store().find_element_user(LIST$4, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "list" element
     */
    public int sizeOfListArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(LIST$4);
        }
    }
    
    /**
     * Sets array of all "list" element
     */
    public void setListArray(org.openehr.schemas.v1.CQUANTITYITEM[] listArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(listArray, LIST$4);
        }
    }
    
    /**
     * Sets ith "list" element
     */
    public void setListArray(int i, org.openehr.schemas.v1.CQUANTITYITEM list)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CQUANTITYITEM target = null;
            target = (org.openehr.schemas.v1.CQUANTITYITEM)get_store().find_element_user(LIST$4, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(list);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "list" element
     */
    public org.openehr.schemas.v1.CQUANTITYITEM insertNewList(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CQUANTITYITEM target = null;
            target = (org.openehr.schemas.v1.CQUANTITYITEM)get_store().insert_element_user(LIST$4, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "list" element
     */
    public org.openehr.schemas.v1.CQUANTITYITEM addNewList()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openehr.schemas.v1.CQUANTITYITEM target = null;
            target = (org.openehr.schemas.v1.CQUANTITYITEM)get_store().add_element_user(LIST$4);
            return target;
        }
    }
    
    /**
     * Removes the ith "list" element
     */
    public void removeList(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(LIST$4, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy