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

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

The newest version!
/*
 * XML Type:  content_item
 * Namespace: openEHR/v1/Template
 * Java type: openEHR.v1.template.ContentItem
 *
 * Automatically generated - do not modify.
 */
package openEHR.v1.template.impl;
/**
 * An XML content_item(@openEHR/v1/Template).
 *
 * This is a complex type.
 */
public class ContentItemImpl extends openEHR.v1.template.impl.ArchetypedImpl implements openEHR.v1.template.ContentItem
{
    private static final long serialVersionUID = 1L;
    
    public ContentItemImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName RULE$0 = 
        new javax.xml.namespace.QName("openEHR/v1/Template", "Rule");
    private static final javax.xml.namespace.QName CONDITIONAL$2 = 
        new javax.xml.namespace.QName("openEHR/v1/Template", "Conditional");
    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 "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$0, 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$0, 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$0);
        }
    }
    
    /**
     * Sets array of all "Rule" element
     */
    public void setRuleArray(openEHR.v1.template.Statement[] ruleArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(ruleArray, RULE$0);
        }
    }
    
    /**
     * 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$0, 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$0, 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$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "Rule" element
     */
    public void removeRule(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(RULE$0, i);
        }
    }
    
    /**
     * Gets the "Conditional" element
     */
    public openEHR.v1.template.Condition getConditional()
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.Condition target = null;
            target = (openEHR.v1.template.Condition)get_store().find_element_user(CONDITIONAL$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "Conditional" element
     */
    public boolean isSetConditional()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CONDITIONAL$2) != 0;
        }
    }
    
    /**
     * Sets the "Conditional" element
     */
    public void setConditional(openEHR.v1.template.Condition conditional)
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.Condition target = null;
            target = (openEHR.v1.template.Condition)get_store().find_element_user(CONDITIONAL$2, 0);
            if (target == null)
            {
                target = (openEHR.v1.template.Condition)get_store().add_element_user(CONDITIONAL$2);
            }
            target.set(conditional);
        }
    }
    
    /**
     * Appends and returns a new empty "Conditional" element
     */
    public openEHR.v1.template.Condition addNewConditional()
    {
        synchronized (monitor())
        {
            check_orphaned();
            openEHR.v1.template.Condition target = null;
            target = (openEHR.v1.template.Condition)get_store().add_element_user(CONDITIONAL$2);
            return target;
        }
    }
    
    /**
     * Unsets the "Conditional" element
     */
    public void unsetConditional()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CONDITIONAL$2, 0);
        }
    }
    
    /**
     * 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