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

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

The newest version!
/*
 * XML Type:  ITEM_STRUCTURE
 * Namespace: openEHR/v1/Template
 * Java type: openEHR.v1.template.ITEMSTRUCTURE
 *
 * Automatically generated - do not modify.
 */
package openEHR.v1.template.impl;
/**
 * An XML ITEM_STRUCTURE(@openEHR/v1/Template).
 *
 * This is a complex type.
 */
public class ITEMSTRUCTUREImpl extends openEHR.v1.template.impl.ArchetypedImpl implements openEHR.v1.template.ITEMSTRUCTURE
{
    private static final long serialVersionUID = 1L;
    
    public ITEMSTRUCTUREImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ITEMS$0 = 
        new javax.xml.namespace.QName("openEHR/v1/Template", "Items");
    private static final javax.xml.namespace.QName RULE$2 = 
        new javax.xml.namespace.QName("openEHR/v1/Template", "Rule");
    private static final javax.xml.namespace.QName MAX$4 = 
        new javax.xml.namespace.QName("", "max");
    private static final javax.xml.namespace.QName MIN$6 = 
        new javax.xml.namespace.QName("", "min");
    private static final javax.xml.namespace.QName PATH$8 = 
        new javax.xml.namespace.QName("", "path");
    private static final javax.xml.namespace.QName NAME$10 = 
        new javax.xml.namespace.QName("", "name");
    private static final javax.xml.namespace.QName HIDEONFORM$12 = 
        new javax.xml.namespace.QName("", "hide_on_form");
    private static final javax.xml.namespace.QName ANNOTATION$14 = 
        new javax.xml.namespace.QName("", "annotation");
    
    
    /**
     * Gets array of all "Items" elements
     */
    public openEHR.v1.template.ITEM[] getItemsArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(ITEMS$0, targetList);
            openEHR.v1.template.ITEM[] result = new openEHR.v1.template.ITEM[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "Items" element
     */
    public openEHR.v1.template.ITEM getItemsArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.ITEM target = null;
            target = (openEHR.v1.template.ITEM)get_store().find_element_user(ITEMS$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "Items" element
     */
    public int sizeOfItemsArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ITEMS$0);
        }
    }
    
    /**
     * Sets array of all "Items" element
     */
    public void setItemsArray(openEHR.v1.template.ITEM[] itemsArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(itemsArray, ITEMS$0);
        }
    }
    
    /**
     * Sets ith "Items" element
     */
    public void setItemsArray(int i, openEHR.v1.template.ITEM items)
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.ITEM target = null;
            target = (openEHR.v1.template.ITEM)get_store().find_element_user(ITEMS$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(items);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "Items" element
     */
    public openEHR.v1.template.ITEM insertNewItems(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.ITEM target = null;
            target = (openEHR.v1.template.ITEM)get_store().insert_element_user(ITEMS$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "Items" element
     */
    public openEHR.v1.template.ITEM addNewItems()
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.ITEM target = null;
            target = (openEHR.v1.template.ITEM)get_store().add_element_user(ITEMS$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "Items" element
     */
    public void removeItems(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ITEMS$0, i);
        }
    }
    
    /**
     * Gets array of all "Rule" elements
     */
    public openEHR.v1.template.Statement[] getRuleArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(RULE$2, targetList);
            openEHR.v1.template.Statement[] result = new openEHR.v1.template.Statement[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "Rule" element
     */
    public openEHR.v1.template.Statement getRuleArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.Statement target = null;
            target = (openEHR.v1.template.Statement)get_store().find_element_user(RULE$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "Rule" element
     */
    public int sizeOfRuleArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(RULE$2);
        }
    }
    
    /**
     * Sets array of all "Rule" element
     */
    public void setRuleArray(openEHR.v1.template.Statement[] ruleArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(ruleArray, RULE$2);
        }
    }
    
    /**
     * Sets ith "Rule" element
     */
    public void setRuleArray(int i, openEHR.v1.template.Statement rule)
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.Statement target = null;
            target = (openEHR.v1.template.Statement)get_store().find_element_user(RULE$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(rule);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "Rule" element
     */
    public openEHR.v1.template.Statement insertNewRule(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.Statement target = null;
            target = (openEHR.v1.template.Statement)get_store().insert_element_user(RULE$2, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "Rule" element
     */
    public openEHR.v1.template.Statement addNewRule()
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.Statement target = null;
            target = (openEHR.v1.template.Statement)get_store().add_element_user(RULE$2);
            return target;
        }
    }
    
    /**
     * Removes the ith "Rule" element
     */
    public void removeRule(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(RULE$2, i);
        }
    }
    
    /**
     * Gets the "max" attribute
     */
    public java.math.BigInteger getMax()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MAX$4);
            if (target == null)
            {
                return null;
            }
            return target.getBigIntegerValue();
        }
    }
    
    /**
     * Gets (as xml) the "max" attribute
     */
    public org.apache.xmlbeans.XmlInteger xgetMax()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInteger target = null;
            target = (org.apache.xmlbeans.XmlInteger)get_store().find_attribute_user(MAX$4);
            return target;
        }
    }
    
    /**
     * True if has "max" attribute
     */
    public boolean isSetMax()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(MAX$4) != null;
        }
    }
    
    /**
     * Sets the "max" attribute
     */
    public void setMax(java.math.BigInteger max)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MAX$4);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(MAX$4);
            }
            target.setBigIntegerValue(max);
        }
    }
    
    /**
     * Sets (as xml) the "max" attribute
     */
    public void xsetMax(org.apache.xmlbeans.XmlInteger max)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInteger target = null;
            target = (org.apache.xmlbeans.XmlInteger)get_store().find_attribute_user(MAX$4);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInteger)get_store().add_attribute_user(MAX$4);
            }
            target.set(max);
        }
    }
    
    /**
     * Unsets the "max" attribute
     */
    public void unsetMax()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(MAX$4);
        }
    }
    
    /**
     * Gets the "min" attribute
     */
    public java.math.BigInteger getMin()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MIN$6);
            if (target == null)
            {
                return null;
            }
            return target.getBigIntegerValue();
        }
    }
    
    /**
     * Gets (as xml) the "min" attribute
     */
    public org.apache.xmlbeans.XmlInteger xgetMin()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInteger target = null;
            target = (org.apache.xmlbeans.XmlInteger)get_store().find_attribute_user(MIN$6);
            return target;
        }
    }
    
    /**
     * True if has "min" attribute
     */
    public boolean isSetMin()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(MIN$6) != null;
        }
    }
    
    /**
     * Sets the "min" attribute
     */
    public void setMin(java.math.BigInteger min)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MIN$6);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(MIN$6);
            }
            target.setBigIntegerValue(min);
        }
    }
    
    /**
     * Sets (as xml) the "min" attribute
     */
    public void xsetMin(org.apache.xmlbeans.XmlInteger min)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInteger target = null;
            target = (org.apache.xmlbeans.XmlInteger)get_store().find_attribute_user(MIN$6);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInteger)get_store().add_attribute_user(MIN$6);
            }
            target.set(min);
        }
    }
    
    /**
     * Unsets the "min" attribute
     */
    public void unsetMin()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(MIN$6);
        }
    }
    
    /**
     * Gets the "path" attribute
     */
    public java.lang.String getPath()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PATH$8);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "path" attribute
     */
    public org.apache.xmlbeans.XmlString xgetPath()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PATH$8);
            return target;
        }
    }
    
    /**
     * True if has "path" attribute
     */
    public boolean isSetPath()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(PATH$8) != null;
        }
    }
    
    /**
     * Sets the "path" attribute
     */
    public void setPath(java.lang.String path)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PATH$8);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PATH$8);
            }
            target.setStringValue(path);
        }
    }
    
    /**
     * Sets (as xml) the "path" attribute
     */
    public void xsetPath(org.apache.xmlbeans.XmlString path)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PATH$8);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(PATH$8);
            }
            target.set(path);
        }
    }
    
    /**
     * Unsets the "path" attribute
     */
    public void unsetPath()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(PATH$8);
        }
    }
    
    /**
     * Gets the "name" attribute
     */
    public java.lang.String getName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$10);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "name" attribute
     */
    public org.apache.xmlbeans.XmlString xgetName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$10);
            return target;
        }
    }
    
    /**
     * True if has "name" attribute
     */
    public boolean isSetName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(NAME$10) != null;
        }
    }
    
    /**
     * Sets the "name" attribute
     */
    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_attribute_user(NAME$10);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$10);
            }
            target.setStringValue(name);
        }
    }
    
    /**
     * Sets (as xml) the "name" attribute
     */
    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_attribute_user(NAME$10);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(NAME$10);
            }
            target.set(name);
        }
    }
    
    /**
     * Unsets the "name" attribute
     */
    public void unsetName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(NAME$10);
        }
    }
    
    /**
     * Gets the "hide_on_form" attribute
     */
    public boolean getHideOnForm()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(HIDEONFORM$12);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "hide_on_form" attribute
     */
    public org.apache.xmlbeans.XmlBoolean xgetHideOnForm()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(HIDEONFORM$12);
            return target;
        }
    }
    
    /**
     * True if has "hide_on_form" attribute
     */
    public boolean isSetHideOnForm()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(HIDEONFORM$12) != null;
        }
    }
    
    /**
     * Sets the "hide_on_form" attribute
     */
    public void setHideOnForm(boolean hideOnForm)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(HIDEONFORM$12);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(HIDEONFORM$12);
            }
            target.setBooleanValue(hideOnForm);
        }
    }
    
    /**
     * Sets (as xml) the "hide_on_form" attribute
     */
    public void xsetHideOnForm(org.apache.xmlbeans.XmlBoolean hideOnForm)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(HIDEONFORM$12);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(HIDEONFORM$12);
            }
            target.set(hideOnForm);
        }
    }
    
    /**
     * Unsets the "hide_on_form" attribute
     */
    public void unsetHideOnForm()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(HIDEONFORM$12);
        }
    }
    
    /**
     * Gets the "annotation" attribute
     */
    public java.lang.String getAnnotation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ANNOTATION$14);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "annotation" attribute
     */
    public org.apache.xmlbeans.XmlString xgetAnnotation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ANNOTATION$14);
            return target;
        }
    }
    
    /**
     * True if has "annotation" attribute
     */
    public boolean isSetAnnotation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(ANNOTATION$14) != null;
        }
    }
    
    /**
     * Sets the "annotation" attribute
     */
    public void setAnnotation(java.lang.String annotation)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ANNOTATION$14);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ANNOTATION$14);
            }
            target.setStringValue(annotation);
        }
    }
    
    /**
     * Sets (as xml) the "annotation" attribute
     */
    public void xsetAnnotation(org.apache.xmlbeans.XmlString annotation)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ANNOTATION$14);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(ANNOTATION$14);
            }
            target.set(annotation);
        }
    }
    
    /**
     * Unsets the "annotation" attribute
     */
    public void unsetAnnotation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(ANNOTATION$14);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy